Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Itinerary): render Texts as div #3541

Merged
merged 1 commit into from Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -149,7 +149,7 @@ const ItinerarySegmentDetail = ({ duration, summary, content, icon }: Props): Re
<StyledInnerWrapper>
<Stack align="center" spacing="small">
<StyledDuration $minWidth={calculatedWidth || 60}>
<Text size="small" weight="medium">
<Text as="div" size="small" weight="medium">
{duration}
</Text>
</StyledDuration>
Expand Down Expand Up @@ -188,7 +188,7 @@ const ItinerarySegmentDetail = ({ duration, summary, content, icon }: Props): Re
// eslint-disable-next-line react/no-array-index-key
<React.Fragment key={idx}>
<StyledHeadingOffset>
<Text size="small" weight="medium" spaceAfter="small">
<Text as="div" size="small" weight="medium" spaceAfter="small">
{title}
</Text>
</StyledHeadingOffset>
Expand All @@ -208,7 +208,7 @@ const ItinerarySegmentDetail = ({ duration, summary, content, icon }: Props): Re
<Text size="small">{name}</Text>
</Truncate>
<Truncate>
<Text size="small" weight="medium" align="right">
<Text as="div" size="small" weight="medium" align="right">
{value}
</Text>
</Truncate>
Expand Down
Expand Up @@ -120,7 +120,7 @@ const ItineraryStatus = ({
<Stack inline spacing="XSmall" align="center">
<StatusIcon type={type} />
{label && (
<Text type={type === "neutral" ? "primary" : type} weight="medium">
<Text as="div" type={type === "neutral" ? "primary" : type} weight="medium">
{label}
</Text>
)}
Expand Down