Skip to content

Commit 6485afe

Browse files
committed
Move Pricing components
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 5130914 commit 6485afe

14 files changed

Lines changed: 17 additions & 922 deletions

File tree

File renamed without changes.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
2-
import Button from "../../reusecore/Button";
3-
import { Col, Row, Container } from "../../reusecore/Layout";
2+
import Button from "../../../reusecore/Button";
3+
import { Col, Row, Container } from "../../../reusecore/Layout";
44
import PlanCardWrapper from "./planCard.style";
55
import FeatureDetails from "./collapsible-details";
66

@@ -103,7 +103,9 @@ const PlanCard = ({ planData , isYearly }) => {
103103
<div key={t.id}>
104104
{isFirstAddOn && (
105105
<div className="add-on-separator">
106+
<span className="add-on-label">Add-on Features</span>
106107
<hr className="add-on-line" />
108+
107109
</div>
108110
)}
109111
<div className="feature">

src/components/PlanCard/planCard.style.js renamed to src/components/Pricing/PlanCard/planCard.style.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ const PlanCardWrapper = styled.section`
140140
line-height: 1rem;
141141
.add-on-separator {
142142
margin: 1.5rem 0 1rem 0;
143+
.add-on-label {
144+
font-size: 0.75rem;
145+
font-weight: 500;
146+
color: ${(props) => props.theme.secondaryColor};
147+
margin-bottom: 0.5rem;
148+
display: block;
149+
}
143150
.add-on-line {
144151
border: none;
145152
border-top: 1px solid ${(props) => props.theme.greyDCDCDCToGrey3B3B3B};
File renamed without changes.

src/components/PricingAddons/index.js renamed to src/components/Pricing/PricingAddons/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { useState, useEffect } from "react";
33
import { Box, Card, CardContent, CardHeader, Typography, FormControl, InputLabel, Select, MenuItem, Slider, Switch, FormControlLabel, Chip, Container, Link, Paper, SistentThemeProvider, CssBaseline, useTheme } from "@sistent/sistent";
44
import { Calculate, CheckCircle } from "@mui/icons-material";
5-
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";
5+
import { useStyledDarkMode } from "../../../theme/app/useStyledDarkMode";
66
import { getAddOns } from "./pricingData";
77
import FeatureDetails from "../PlanCard/collapsible-details";
88
import PlanCardWrapper from "../PlanCard/planCard.style";

src/components/PricingAddons/pricingAddons.style.js renamed to src/components/Pricing/PricingAddons/pricingAddons.style.js

File renamed without changes.
File renamed without changes.

src/components/PricingAddons/testpage.js renamed to src/components/Pricing/PricingAddons/testpage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PricingAddons } from ".";
44

55
import { SistentThemeProvider, Box, Typography, Container, CssBaseline } from "@sistent/sistent";
66

7-
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";
7+
import { useStyledDarkMode } from "../../../theme/app/useStyledDarkMode";
88

99

1010
const TestPage = () => {

0 commit comments

Comments
 (0)