Skip to content

Commit

Permalink
TEC-4543: add validation in deadline label (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhyonKeyllon authored Nov 5, 2024
1 parent 1f08023 commit ae7ef26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chardonnay",
"version": "1.0.38",
"version": "1.0.39",
"description": "A mobile first frontend framework made with wine",
"homepage": "https://vissimo-group.github.io/chardonnay/",
"main": "./dist/index.js",
Expand Down
10 changes: 6 additions & 4 deletions src/components/CardAddress/Shipping/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Deadline = styled.span`
`

const Line = styled.div<ShippingAddressProps>`
border: 1px solid
border-bottom: 1px solid
${(props: CommomProps) => Colors[props.theme].neutral.neutral200};
`

Expand Down Expand Up @@ -116,9 +116,11 @@ const ShippingAddress: React.FC<ShippingAddressProps> = ({
</ContainerHeader>
<ContainerBody>
<Text>{address}</Text>
<ContainerDeadline>
{deliveryDeadlineLabel} <Deadline>{deadline}</Deadline>
</ContainerDeadline>
{deliveryDeadlineLabel && (
<ContainerDeadline>
{deliveryDeadlineLabel} <Deadline>{deadline}</Deadline>
</ContainerDeadline>
)}
<Line theme={theme} />
<DataUser>
<Text>{name}</Text>
Expand Down

0 comments on commit ae7ef26

Please sign in to comment.