diff --git a/src/components/PlanCard/collapsible-details.js b/src/components/PlanCard/collapsible-details.js index e1cf0d9e15e9..1276a6bd473a 100644 --- a/src/components/PlanCard/collapsible-details.js +++ b/src/components/PlanCard/collapsible-details.js @@ -4,77 +4,96 @@ import { MdExpandMore } from "@react-icons/all-files/md/MdExpandMore"; import { RiArrowRightSLine } from "@react-icons/all-files/ri/RiArrowRightSLine"; const FeatureDetailsWrapper = styled.div` -display: inline; -cursor: pointer; -.open{ + display: inline; + cursor: pointer; + + .open { margin: 0rem; list-style: none; - height:auto !important; - opacity:1 !important; + height: auto !important; + opacity: 1 !important; margin-bottom: 2rem; - transition:all .4s !important; - } - .toggle-icon{ - width: 1.2rem; - height: 1.2rem; - fill: ${props => props.theme.primaryColor}; + transition: all 0.4s !important; + } + + .toggle-icon { + width: 1.2rem; + height: 1.2rem; + fill: ${(props) => props.theme.primaryColor}; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); } -p{ + + p { font-size: 0.9rem; - color: ${props => props.theme.greyC1C1C1ToGreyB3B3B3}; - transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); -} -.toggle-btn{ - display:inline-block; + color: ${(props) => props.theme.greyC1C1C1ToGreyB3B3B3}; + transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); + } + + .toggle-btn { + display: inline-block; float: left; - vertical-align: middle;; - } - .closed{ - opacity:1; - height:0; - transition:none; - visibility:hidden; - } - .open{ - visibility:visible; - } - h5{ - display: inline-block; - vertical-align: middle; - } + vertical-align: middle; + } + + .closed { + opacity: 1; + height: 0; + transition: none; + visibility: hidden; + } + + .open { + visibility: visible; + } + + h5 { + display: inline-block; + vertical-align: middle; + } + + .beta-tag { + display: inline-block; + background-color: #ffd700; + color: #000000; + font-size: 0.7rem; + padding: 2px 6px; + border-radius: 4px; + margin-left: 8px; + font-weight: bold; + vertical-align: middle; + } `; -const FeatureDetails = (props) => { +const FeatureDetails = ({ category, description, tier }) => { const [expand, setExpand] = React.useState(false); + const BetaTag = () => Coming Soon; + return ( - - {props.description ? + setExpand(!expand)}> + {description && ( {expand ? ( setExpand(!expand)} /> ) : ( setExpand(!expand)} /> )} - : ""} - {props.category} + + )} + + {category} + {tier === "Team-Beta" && } + - {props.description} + {description} diff --git a/src/components/PlanCard/index.js b/src/components/PlanCard/index.js index d2ab8432dddf..c3f3e2000209 100644 --- a/src/components/PlanCard/index.js +++ b/src/components/PlanCard/index.js @@ -28,6 +28,7 @@ const PlanCard = ({ planData }) => { ))} diff --git a/src/sections/Pricing/generateOptions.js b/src/sections/Pricing/generateOptions.js index 3ee7ef61896d..07825de1cb38 100644 --- a/src/sections/Pricing/generateOptions.js +++ b/src/sections/Pricing/generateOptions.js @@ -36,15 +36,16 @@ function generateOptions(data) { const options = Object.entries(tiers).map(([tierName, tierInfo]) => { const summary = data - .filter( - (item) => - item.entire_row["Subscription Tier"] === tierName && - item.pricing_page === "true" + .filter((item) => + (tierName === "Team" && + (item.entire_row["Subscription Tier"] === "Team" || item.entire_row["Subscription Tier"] === "Team-Beta")) || + (item.entire_row["Subscription Tier"] === tierName && item.pricing_page === "true") ) .map((item, index) => ({ id: index, category: item.entire_row.Function, - description: item.entire_row.Feature + description: item.entire_row.Feature, + tier: item.entire_row["Subscription Tier"] })); return {
- {props.description} + {description}