From 6c88bc37a37ef1503130cbbd243af01be3ae463d Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Sun, 18 Apr 2021 16:11:56 +0530 Subject: [PATCH] extracted styles to globalCSS --- src/pages/_app.tsx | 6 ++- src/pages/gallery/components/PlanSelector.tsx | 37 +++---------------- 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 9ce04bbc7..2f776f7a0 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -199,7 +199,11 @@ const GlobalStyles = createGlobalStyle` .custom-switch.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(calc(2.0rem - 0.25rem)); } - + .bold-text{ + color: #ECECEC; + line-height: 24px; + font-size: 24px; + } `; const Image = styled.img` diff --git a/src/pages/gallery/components/PlanSelector.tsx b/src/pages/gallery/components/PlanSelector.tsx index abbf4c6b4..c6b48b59c 100644 --- a/src/pages/gallery/components/PlanSelector.tsx +++ b/src/pages/gallery/components/PlanSelector.tsx @@ -29,6 +29,7 @@ export const PlanIcon = styled.div<{ selected: boolean }>` font-size: 20px; cursor: ${(props) => (props.selected ? 'not-allowed' : 'pointer')}; background: ${(props) => props.selected && '#404040'}; + margin-top: 20px; `; const LoaderOverlay = styled.div` @@ -119,7 +120,6 @@ function PlanSelector(props: Props) { !isUserRenewingPlan(plan, subscription) && selectPlan(plan) } selected={isUserRenewingPlan(plan, subscription)} - style={{ marginBottom: '10px' }} >
- {`${plan.price} / ${plan.period}`} -
+ className={`bold-text`} + >{`${plan.price} / ${plan.period}`} {isUserRenewingPlan(plan, subscription) && 'active'} )); @@ -180,36 +174,17 @@ function PlanSelector(props: Props) {
- - {constants.MONTHLY} - + {constants.MONTHLY} - - {constants.YEARLY} - + {constants.YEARLY}