Skip to content

Commit

Permalink
chore(create-subscription) Adjust separator
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Oct 11, 2023
1 parent 384b2c3 commit 7468713
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/pages/CreateSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ const CreateSubscription = () => {
)}
</Card>

{!isPremium && (
{!isPremium ? (
<FreemiumCard>
<FreemiumCardLeft>
<FreemiumCardLeftTitleContainer>
Expand All @@ -673,7 +673,11 @@ const CreateSubscription = () => {
{translate('text_65118a52df984447c18694d0')}
</Button>
</FreemiumCard>
)}
) : formType !== FORM_TYPE_ENUM.edition || !subscription?.plan.parent?.id ? (
<OverridePlanSeparatorTypography variant="captionHl" color="grey500">
{translate('text_65118a52df984447c18694d0')}
</OverridePlanSeparatorTypography>
) : null}

<PlanFormConditionalWrapper $isPremium={isPremium}>
<PlanSettingsSection
Expand Down Expand Up @@ -858,7 +862,7 @@ const FreemiumCard = styled(Card)`
/* Reset <Card> style */
> * {
margin-bottom: 0;
margin-bottom: 0 !important;
}
`

Expand Down Expand Up @@ -898,4 +902,21 @@ const AccordionSkeleton = styled.div`
border: 1px solid ${theme.palette.grey[400]};
`

const OverridePlanSeparatorTypography = styled(Typography)`
display: flex;
align-items: center;
white-space: nowrap;
text-transform: uppercase;
gap: ${theme.spacing(4)};
&::before,
&::after {
content: '';
display: inline-block;
height: 2px;
width: 100%;
background-color: ${theme.palette.grey[300]};
}
`

export default CreateSubscription

0 comments on commit 7468713

Please sign in to comment.