From ac8ffdfa7053cbc5f70b0a8e7eeeb1617eb9706b Mon Sep 17 00:00:00 2001 From: Sung Won Cho Date: Wed, 27 Nov 2019 11:40:24 +0800 Subject: [PATCH] Update plan details --- ...atureList.module.scss => FeatureList.scss} | 1 - .../{FeatureList.js => FeatureList.tsx} | 17 ++++++-- web/src/components/Subscription/Plan/Core.tsx | 12 ++---- .../components/Subscription/Plan/Plan.scss | 43 +++++-------------- web/src/components/Subscription/Plan/Pro.tsx | 18 ++------ .../components/Subscription/Plan/internal.tsx | 25 ++++------- .../components/Subscription/Subscription.scss | 12 ++++++ web/src/components/Subscription/index.tsx | 42 +++++++++++++----- 8 files changed, 81 insertions(+), 89 deletions(-) rename web/src/components/Subscription/{FeatureList.module.scss => FeatureList.scss} (97%) rename web/src/components/Subscription/{FeatureList.js => FeatureList.tsx} (75%) diff --git a/web/src/components/Subscription/FeatureList.module.scss b/web/src/components/Subscription/FeatureList.scss similarity index 97% rename from web/src/components/Subscription/FeatureList.module.scss rename to web/src/components/Subscription/FeatureList.scss index bbe964b9..b0528200 100644 --- a/web/src/components/Subscription/FeatureList.module.scss +++ b/web/src/components/Subscription/FeatureList.scss @@ -25,5 +25,4 @@ list-style: none; margin-bottom: 0; padding-left: 0; - padding-top: rem(12px); } diff --git a/web/src/components/Subscription/FeatureList.js b/web/src/components/Subscription/FeatureList.tsx similarity index 75% rename from web/src/components/Subscription/FeatureList.js rename to web/src/components/Subscription/FeatureList.tsx index 8380f1ca..78ae19da 100644 --- a/web/src/components/Subscription/FeatureList.js +++ b/web/src/components/Subscription/FeatureList.tsx @@ -17,19 +17,28 @@ */ import React from 'react'; +import classnames from 'classnames'; import FeatureItem from './FeatureItem'; -import styles from './FeatureList.module.scss'; +import styles from './FeatureList.scss'; -function FeatureList({ features }) { +interface Props { + features: any; + wrapperClassName?: string; +} + +const FeatureList: React.FunctionComponent = ({ + features, + wrapperClassName +}) => { return ( -