diff --git a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeCheckoutTicket/classes.module.scss b/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/classes.module.scss similarity index 100% rename from src/front/Components/Layouts/Subscription/Subscribe/SubscribeCheckoutTicket/classes.module.scss rename to src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/classes.module.scss diff --git a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeCheckoutTicket/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx similarity index 100% rename from src/front/Components/Layouts/Subscription/Subscribe/SubscribeCheckoutTicket/index.tsx rename to src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/classes.module.scss b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/classes.module.scss new file mode 100644 index 00000000..c0b1a51d --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/classes.module.scss @@ -0,0 +1,98 @@ +@import "@Themes/constants.scss"; + +.root { + display: flex; + justify-content: space-between; + gap: 104px; + max-width: 1400px; + margin: auto; + @media (max-width: $screen-m) { + margin-top: 40px; + margin-bottom: 40px; + gap: 72px; + } + + @media (max-width: $screen-s) { + margin-bottom: 50px; + } + + .left { + display: flex; + gap: 40px; + flex-direction: column; + .infos-container { + display: flex; + flex-direction: column; + gap: 16px; + .line { + svg { + min-width: 24px; + min-height: 24px; + } + display: flex; + gap: 16px; + } + } + } + + .right { + width: 372px; + @media (max-width: $screen-m) { + margin-top: 50px; + } + + @media (max-width: $screen-s) { + display: none; + } + } + + button { + @media (max-width: $screen-s) { + display: none; + } + } +} + +.bottom { + display: none; + position: sticky; + bottom: 0px; + flex-direction: column; + justify-content: center; + gap: 32px; + box-shadow: 0px 8px 10px 0px #00000012; + padding: 22px 16px; + border-radius: 16px 16px 0 0; + background: white; + + @media (max-width: $screen-s) { + display: flex; + } + + box-shadow: 0px 4px 24px 0px #00000026; + + .forfeit-type { + text-align: center; + } + + .container-frequency { + display: flex; + justify-content: space-between; + } + + .separator { + width: 100%; + height: 1px; + background-color: gray; + } + + .container-line { + display: flex; + justify-content: space-between; + gap: 24px; + } + + .container-tight { + gap: 8px; + } +} diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx new file mode 100644 index 00000000..b70c2b7f --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx @@ -0,0 +1,130 @@ +import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; +import classes from "./classes.module.scss"; +import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; +import NavTab from "@Front/Components/Elements/NavTab"; +import SubscribeCheckoutTicket, { EPaymentFrequency, forfeitsPrices } from "../SubscribeCheckoutTicket"; +import { EForfeitType } from "../../SubscriptionFacturation"; +import { useEffect, useState } from "react"; +import Check from "@Front/Components/Elements/Icons/Check"; +import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import RadioBox from "@Front/Components/DesignSystem/RadioBox"; +import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; +import useOpenable from "@Front/Hooks/useOpenable"; + +type IProps = { + hasNavTab?: boolean; +}; +export default function SubscribeIllimityComponent({ hasNavTab = true }: IProps) { + const { close, isOpen, open } = useOpenable(); + + const formatFloat = (value: number) => { + return value.toFixed(2).replace(".", ","); + }; + + const [paymentFrequency, setPaymentFrequency] = useState(EPaymentFrequency.monthly); + const [multiplier, setMultiplier] = useState(1); + + useEffect(() => { + setMultiplier(paymentFrequency === EPaymentFrequency.monthly ? 1 : 12); + }, [paymentFrequency]); + + const handleFrequencyChange = (e: React.ChangeEvent) => { + setPaymentFrequency(parseInt(e.target.value) as EPaymentFrequency); + }; + + return ( + <> + +
+
+ {hasNavTab && ( + + )} + + Nombre de collaborateurs illimité + +
+
+ + + Accompagnement facilité : profitez d'un onboarding individualisé, où nous vous guidons pour une prise en + main optimale de l'application + +
+
+ + + Support technique : notre équipe support est disponible pour vous assister en cas d’incident + +
+
+ + + Mises à jour régulières : bénéficiez de mises à jour fréquentes pour profiter des dernières + fonctionnalités, améliorations de sécurité et performances optimisées + +
+
+ + + Sans limite d'utilisateurs + +
+
+
+
+ +
+
+
+ + + +
+
+ + Annuel + + + Mensuel + +
+
+
+ + Total TTC + + + {formatFloat(forfeitsPrices[EForfeitType.unlimited] * 1.2 * multiplier)} +  € + +
+
+ +
+
+ +
+
+ + ); +} diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/classes.module.scss b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/classes.module.scss new file mode 100644 index 00000000..c0b1a51d --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/classes.module.scss @@ -0,0 +1,98 @@ +@import "@Themes/constants.scss"; + +.root { + display: flex; + justify-content: space-between; + gap: 104px; + max-width: 1400px; + margin: auto; + @media (max-width: $screen-m) { + margin-top: 40px; + margin-bottom: 40px; + gap: 72px; + } + + @media (max-width: $screen-s) { + margin-bottom: 50px; + } + + .left { + display: flex; + gap: 40px; + flex-direction: column; + .infos-container { + display: flex; + flex-direction: column; + gap: 16px; + .line { + svg { + min-width: 24px; + min-height: 24px; + } + display: flex; + gap: 16px; + } + } + } + + .right { + width: 372px; + @media (max-width: $screen-m) { + margin-top: 50px; + } + + @media (max-width: $screen-s) { + display: none; + } + } + + button { + @media (max-width: $screen-s) { + display: none; + } + } +} + +.bottom { + display: none; + position: sticky; + bottom: 0px; + flex-direction: column; + justify-content: center; + gap: 32px; + box-shadow: 0px 8px 10px 0px #00000012; + padding: 22px 16px; + border-radius: 16px 16px 0 0; + background: white; + + @media (max-width: $screen-s) { + display: flex; + } + + box-shadow: 0px 4px 24px 0px #00000026; + + .forfeit-type { + text-align: center; + } + + .container-frequency { + display: flex; + justify-content: space-between; + } + + .separator { + width: 100%; + height: 1px; + background-color: gray; + } + + .container-line { + display: flex; + justify-content: space-between; + gap: 24px; + } + + .container-tight { + gap: 8px; + } +} diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx new file mode 100644 index 00000000..5f371062 --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx @@ -0,0 +1,134 @@ +import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; +import classes from "./classes.module.scss"; +import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; +import NavTab from "@Front/Components/Elements/NavTab"; +import NumberPicker from "@Front/Components/Elements/NumberPicker"; +import SubscribeCheckoutTicket, { EPaymentFrequency, collaboratorPrice, forfeitsPrices } from "../SubscribeCheckoutTicket"; +import { EForfeitType } from "../../SubscriptionFacturation"; +import { useEffect, useState } from "react"; +import Check from "@Front/Components/Elements/Icons/Check"; +import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import RadioBox from "@Front/Components/DesignSystem/RadioBox"; +import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; +import useOpenable from "@Front/Hooks/useOpenable"; +// import Stripe from "@Front/Api/LeCoffreApi/Admin/Stripe/Stripe"; +// import { EType } from "le-coffre-resources/dist/Admin/Subscription"; + +type IProps = { + hasNavTab?: boolean; +}; +export default function SubscribeStandardComponent({ hasNavTab = true }: IProps) { + const [numberOfCollaborators, setNumberOfCollaborators] = useState(1); + const { close, isOpen, open } = useOpenable(); + const handleCollaboratorsChange = (value: number) => { + setNumberOfCollaborators(value); + }; + + const formatFloat = (value: number) => { + return value.toFixed(2).replace(".", ","); + }; + + const [paymentFrequency, setPaymentFrequency] = useState(EPaymentFrequency.monthly); + const [multiplier, setMultiplier] = useState(1); + + useEffect(() => { + setMultiplier(paymentFrequency === EPaymentFrequency.monthly ? 1 : 12); + }, [paymentFrequency]); + + const handleFrequencyChange = (e: React.ChangeEvent) => { + setPaymentFrequency(parseInt(e.target.value) as EPaymentFrequency); + }; + + return ( + <> + +
+
+ {hasNavTab && ( + + )} + + Choisissez le nombre de collaborateurs pour votre abonnement + + +
+
+ + + Accompagnement facilité : profitez d'un onboarding individualisé, où nous vous guidons pour une prise en + main optimale de l'application + +
+
+ + + Support technique : notre équipe support est disponible pour vous assister en cas d’incident + +
+
+ + + Mises à jour régulières : bénéficiez de mises à jour fréquentes pour profiter des dernières + fonctionnalités, améliorations de sécurité et performances optimisées + +
+
+
+
+ +
+
+
+ + + +
+
+ + Annuel + + + Mensuel + +
+
+
+ + Total TTC + + + {formatFloat( + (forfeitsPrices[EForfeitType.standard] + collaboratorPrice * numberOfCollaborators) * 1.2 * multiplier, + )} +  € + +
+
+ +
+
+ +
+
+ + ); +} diff --git a/src/front/Components/Layouts/Subscription/SubscriptionClientInfos/classes.module.scss b/src/front/Components/Layouts/Subscription/Components/SubscriptionClientInfos/classes.module.scss similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionClientInfos/classes.module.scss rename to src/front/Components/Layouts/Subscription/Components/SubscriptionClientInfos/classes.module.scss diff --git a/src/front/Components/Layouts/Subscription/SubscriptionClientInfos/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscriptionClientInfos/index.tsx similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionClientInfos/index.tsx rename to src/front/Components/Layouts/Subscription/Components/SubscriptionClientInfos/index.tsx diff --git a/src/front/Components/Layouts/Subscription/SubscriptionTicket/classes.module.scss b/src/front/Components/Layouts/Subscription/Components/SubscriptionTicket/classes.module.scss similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionTicket/classes.module.scss rename to src/front/Components/Layouts/Subscription/Components/SubscriptionTicket/classes.module.scss diff --git a/src/front/Components/Layouts/Subscription/SubscriptionTicket/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscriptionTicket/index.tsx similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionTicket/index.tsx rename to src/front/Components/Layouts/Subscription/Components/SubscriptionTicket/index.tsx diff --git a/src/front/Components/Layouts/Subscription/SubscriptionManageCollaborators/classes.module.scss b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/classes.module.scss similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionManageCollaborators/classes.module.scss rename to src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/classes.module.scss diff --git a/src/front/Components/Layouts/Subscription/SubscriptionManageCollaborators/index.tsx b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx similarity index 100% rename from src/front/Components/Layouts/Subscription/SubscriptionManageCollaborators/index.tsx rename to src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx diff --git a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity/classes.module.scss b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity/classes.module.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity/index.tsx b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity/index.tsx new file mode 100644 index 00000000..b6ae0d80 --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity/index.tsx @@ -0,0 +1,5 @@ +import SubscribeIllimityComponent from "../../Components/SubscribeIllimityComponent"; + +export default function SubscribeManageIllimity() { + return ; +} diff --git a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/classes.module.scss b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/classes.module.scss new file mode 100644 index 00000000..c0b1a51d --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/classes.module.scss @@ -0,0 +1,98 @@ +@import "@Themes/constants.scss"; + +.root { + display: flex; + justify-content: space-between; + gap: 104px; + max-width: 1400px; + margin: auto; + @media (max-width: $screen-m) { + margin-top: 40px; + margin-bottom: 40px; + gap: 72px; + } + + @media (max-width: $screen-s) { + margin-bottom: 50px; + } + + .left { + display: flex; + gap: 40px; + flex-direction: column; + .infos-container { + display: flex; + flex-direction: column; + gap: 16px; + .line { + svg { + min-width: 24px; + min-height: 24px; + } + display: flex; + gap: 16px; + } + } + } + + .right { + width: 372px; + @media (max-width: $screen-m) { + margin-top: 50px; + } + + @media (max-width: $screen-s) { + display: none; + } + } + + button { + @media (max-width: $screen-s) { + display: none; + } + } +} + +.bottom { + display: none; + position: sticky; + bottom: 0px; + flex-direction: column; + justify-content: center; + gap: 32px; + box-shadow: 0px 8px 10px 0px #00000012; + padding: 22px 16px; + border-radius: 16px 16px 0 0; + background: white; + + @media (max-width: $screen-s) { + display: flex; + } + + box-shadow: 0px 4px 24px 0px #00000026; + + .forfeit-type { + text-align: center; + } + + .container-frequency { + display: flex; + justify-content: space-between; + } + + .separator { + width: 100%; + height: 1px; + background-color: gray; + } + + .container-line { + display: flex; + justify-content: space-between; + gap: 24px; + } + + .container-tight { + gap: 8px; + } +} diff --git a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/index.tsx b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/index.tsx new file mode 100644 index 00000000..5f56eadc --- /dev/null +++ b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard/index.tsx @@ -0,0 +1,5 @@ +import SubscribeStandardComponent from "../../Components/SubscribeStandardComponent"; + +export default function SubscribeManageStandard() { + return ; +} diff --git a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeIllimity/index.tsx b/src/front/Components/Layouts/Subscription/Subscribe/SubscribeIllimity/index.tsx index 7d3a0ac1..e034136e 100644 --- a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeIllimity/index.tsx +++ b/src/front/Components/Layouts/Subscription/Subscribe/SubscribeIllimity/index.tsx @@ -1,125 +1,5 @@ -import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; -import classes from "./classes.module.scss"; -import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; -import NavTab from "@Front/Components/Elements/NavTab"; -import SubscribeCheckoutTicket, { EPaymentFrequency, forfeitsPrices } from "../SubscribeCheckoutTicket"; -import { EForfeitType } from "../../SubscriptionFacturation"; -import { useEffect, useState } from "react"; -import Check from "@Front/Components/Elements/Icons/Check"; -import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; -import RadioBox from "@Front/Components/DesignSystem/RadioBox"; -import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; -import useOpenable from "@Front/Hooks/useOpenable"; +import SubscribeIllimityComponent from "../../Components/SubscribeIllimityComponent"; export default function SubscribeIllimity() { - const { close, isOpen, open } = useOpenable(); - - const formatFloat = (value: number) => { - return value.toFixed(2).replace(".", ","); - }; - - const [paymentFrequency, setPaymentFrequency] = useState(EPaymentFrequency.monthly); - const [multiplier, setMultiplier] = useState(1); - - useEffect(() => { - setMultiplier(paymentFrequency === EPaymentFrequency.monthly ? 1 : 12); - }, [paymentFrequency]); - - const handleFrequencyChange = (e: React.ChangeEvent) => { - setPaymentFrequency(parseInt(e.target.value) as EPaymentFrequency); - }; - - return ( - <> - -
-
- - - Nombre de collaborateurs illimité - -
-
- - - Accompagnement facilité : profitez d'un onboarding individualisé, où nous vous guidons pour une prise en - main optimale de l'application - -
-
- - - Support technique : notre équipe support est disponible pour vous assister en cas d’incident - -
-
- - - Mises à jour régulières : bénéficiez de mises à jour fréquentes pour profiter des dernières - fonctionnalités, améliorations de sécurité et performances optimisées - -
-
- - - Sans limite d'utilisateurs - -
-
-
-
- -
-
-
- - - -
-
- - Annuel - - - Mensuel - -
-
-
- - Total TTC - - - {formatFloat(forfeitsPrices[EForfeitType.unlimited] * 1.2 * multiplier)} -  € - -
-
- -
-
- -
-
- - ); + return ; } diff --git a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeStandard/index.tsx b/src/front/Components/Layouts/Subscription/Subscribe/SubscribeStandard/index.tsx index ab8ea019..e6b87629 100644 --- a/src/front/Components/Layouts/Subscription/Subscribe/SubscribeStandard/index.tsx +++ b/src/front/Components/Layouts/Subscription/Subscribe/SubscribeStandard/index.tsx @@ -1,129 +1,5 @@ -import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; -import classes from "./classes.module.scss"; -import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; -import NavTab from "@Front/Components/Elements/NavTab"; -import NumberPicker from "@Front/Components/Elements/NumberPicker"; -import SubscribeCheckoutTicket, { EPaymentFrequency, collaboratorPrice, forfeitsPrices } from "../SubscribeCheckoutTicket"; -import { EForfeitType } from "../../SubscriptionFacturation"; -import { useEffect, useState } from "react"; -import Check from "@Front/Components/Elements/Icons/Check"; -import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; -import RadioBox from "@Front/Components/DesignSystem/RadioBox"; -import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; -import useOpenable from "@Front/Hooks/useOpenable"; -// import Stripe from "@Front/Api/LeCoffreApi/Admin/Stripe/Stripe"; -// import { EType } from "le-coffre-resources/dist/Admin/Subscription"; +import SubscribeStandardComponent from "../../Components/SubscribeStandardComponent"; export default function SubscribeStandard() { - const [numberOfCollaborators, setNumberOfCollaborators] = useState(1); - const { close, isOpen, open } = useOpenable(); - const handleCollaboratorsChange = (value: number) => { - setNumberOfCollaborators(value); - }; - - const formatFloat = (value: number) => { - return value.toFixed(2).replace(".", ","); - }; - - const [paymentFrequency, setPaymentFrequency] = useState(EPaymentFrequency.monthly); - const [multiplier, setMultiplier] = useState(1); - - useEffect(() => { - setMultiplier(paymentFrequency === EPaymentFrequency.monthly ? 1 : 12); - }, [paymentFrequency]); - - const handleFrequencyChange = (e: React.ChangeEvent) => { - setPaymentFrequency(parseInt(e.target.value) as EPaymentFrequency); - }; - - return ( - <> - -
-
- - - Choisissez le nombre de collaborateurs pour votre abonnement - - -
-
- - - Accompagnement facilité : profitez d'un onboarding individualisé, où nous vous guidons pour une prise en - main optimale de l'application - -
-
- - - Support technique : notre équipe support est disponible pour vous assister en cas d’incident - -
-
- - - Mises à jour régulières : bénéficiez de mises à jour fréquentes pour profiter des dernières - fonctionnalités, améliorations de sécurité et performances optimisées - -
-
-
-
- -
-
-
- - - -
-
- - Annuel - - - Mensuel - -
-
-
- - Total TTC - - - {formatFloat( - (forfeitsPrices[EForfeitType.standard] + collaboratorPrice * numberOfCollaborators) * 1.2 * multiplier, - )} -  € - -
-
- -
-
- -
-
- - ); + return ; } diff --git a/src/front/Components/Layouts/Subscription/SubscriptionError/index.tsx b/src/front/Components/Layouts/Subscription/SubscriptionError/index.tsx index deb9000c..22dc4b5c 100644 --- a/src/front/Components/Layouts/Subscription/SubscriptionError/index.tsx +++ b/src/front/Components/Layouts/Subscription/SubscriptionError/index.tsx @@ -1,9 +1,9 @@ import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import classes from "./classes.module.scss"; -import SubscriptionTicket from "../SubscriptionTicket"; +import SubscriptionTicket from "../Components/SubscriptionTicket"; import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; import MessageBox from "@Front/Components/Elements/MessageBox"; -import SubscriptionClientInfos from "../SubscriptionClientInfos"; +import SubscriptionClientInfos from "../Components/SubscriptionClientInfos"; import Button from "@Front/Components/DesignSystem/Button"; export default function SubscriptionError() { diff --git a/src/front/Components/Layouts/Subscription/SubscriptionFacturation/index.tsx b/src/front/Components/Layouts/Subscription/SubscriptionFacturation/index.tsx index e7eab0c5..113e5099 100644 --- a/src/front/Components/Layouts/Subscription/SubscriptionFacturation/index.tsx +++ b/src/front/Components/Layouts/Subscription/SubscriptionFacturation/index.tsx @@ -19,7 +19,7 @@ export enum EForfeitType { } export default function SubscriptionFacturation() { const router = useRouter(); - const [forfeitType, _setForfeitType] = useState(EForfeitType.standard); + const [forfeitType, _setForfeitType] = useState(EForfeitType.unlimited); const { close: closeCancelSubscription, isOpen: isCancelSubscriptionOpen, open: openCancelSubscription } = useOpenable(); const { close: closeConfirmation, isOpen: isConfirmationOpen, open: openConfirmation } = useOpenable(); @@ -87,8 +87,7 @@ export default function SubscriptionFacturation() {
{forfeitType !== EForfeitType.standard && ( - + @@ -97,9 +96,7 @@ export default function SubscriptionFacturation() { {forfeitType === EForfeitType.standard && ( <> + href={Module.getInstance().get().modules.pages.Subscription.pages.Manage.pages.Standard.props.path}> @@ -151,8 +148,7 @@ export default function SubscriptionFacturation() { )} {forfeitType === EForfeitType.standard && ( - + diff --git a/src/front/Components/Layouts/Subscription/SubscriptionSuccess/index.tsx b/src/front/Components/Layouts/Subscription/SubscriptionSuccess/index.tsx index 2000e70c..2f79ee80 100644 --- a/src/front/Components/Layouts/Subscription/SubscriptionSuccess/index.tsx +++ b/src/front/Components/Layouts/Subscription/SubscriptionSuccess/index.tsx @@ -1,9 +1,9 @@ import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import classes from "./classes.module.scss"; -import SubscriptionTicket from "../SubscriptionTicket"; +import SubscriptionTicket from "../Components/SubscriptionTicket"; import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; import MessageBox from "@Front/Components/Elements/MessageBox"; -import SubscriptionClientInfos from "../SubscriptionClientInfos"; +import SubscriptionClientInfos from "../Components/SubscriptionClientInfos"; import Button from "@Front/Components/DesignSystem/Button"; import Link from "next/link"; import Module from "@Front/Config/Module"; diff --git a/src/front/Config/Module/development.json b/src/front/Config/Module/development.json index a7b23134..224c6033 100644 --- a/src/front/Config/Module/development.json +++ b/src/front/Config/Module/development.json @@ -297,6 +297,22 @@ "props": { "path": "/subscription/manage", "labelKey": "manage" + }, + "pages": { + "Standard": { + "enabled": true, + "props": { + "path": "/subscription/manage/standard", + "labelKey": "standard" + } + }, + "Illimity": { + "enabled": true, + "props": { + "path": "/subscription/manage/illimity", + "labelKey": "illimity" + } + } } }, "New": { diff --git a/src/front/Config/Module/preprod.json b/src/front/Config/Module/preprod.json index a7b23134..224c6033 100644 --- a/src/front/Config/Module/preprod.json +++ b/src/front/Config/Module/preprod.json @@ -297,6 +297,22 @@ "props": { "path": "/subscription/manage", "labelKey": "manage" + }, + "pages": { + "Standard": { + "enabled": true, + "props": { + "path": "/subscription/manage/standard", + "labelKey": "standard" + } + }, + "Illimity": { + "enabled": true, + "props": { + "path": "/subscription/manage/illimity", + "labelKey": "illimity" + } + } } }, "New": { diff --git a/src/front/Config/Module/production.json b/src/front/Config/Module/production.json index a7b23134..224c6033 100644 --- a/src/front/Config/Module/production.json +++ b/src/front/Config/Module/production.json @@ -297,6 +297,22 @@ "props": { "path": "/subscription/manage", "labelKey": "manage" + }, + "pages": { + "Standard": { + "enabled": true, + "props": { + "path": "/subscription/manage/standard", + "labelKey": "standard" + } + }, + "Illimity": { + "enabled": true, + "props": { + "path": "/subscription/manage/illimity", + "labelKey": "illimity" + } + } } }, "New": { diff --git a/src/front/Config/Module/staging.json b/src/front/Config/Module/staging.json index a7b23134..224c6033 100644 --- a/src/front/Config/Module/staging.json +++ b/src/front/Config/Module/staging.json @@ -297,6 +297,22 @@ "props": { "path": "/subscription/manage", "labelKey": "manage" + }, + "pages": { + "Standard": { + "enabled": true, + "props": { + "path": "/subscription/manage/standard", + "labelKey": "standard" + } + }, + "Illimity": { + "enabled": true, + "props": { + "path": "/subscription/manage/illimity", + "labelKey": "illimity" + } + } } }, "New": { diff --git a/src/pages/subscription/manage-collaborators/index.tsx b/src/pages/subscription/manage-collaborators/index.tsx index d5d03817..5ea6f730 100644 --- a/src/pages/subscription/manage-collaborators/index.tsx +++ b/src/pages/subscription/manage-collaborators/index.tsx @@ -1,4 +1,4 @@ -import SubscriptionManageCollaborators from "@Front/Components/Layouts/Subscription/SubscriptionManageCollaborators"; +import SubscriptionManageCollaborators from "@Front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators"; export default function Route() { return ; diff --git a/src/pages/subscription/manage/illimity.tsx b/src/pages/subscription/manage/illimity.tsx new file mode 100644 index 00000000..44802241 --- /dev/null +++ b/src/pages/subscription/manage/illimity.tsx @@ -0,0 +1,5 @@ +import SubscriptionManageIllimity from "@Front/Components/Layouts/Subscription/Manage/SubscriptionManageIllimity"; + +export default function Route() { + return ; +} diff --git a/src/pages/subscription/manage/standard.tsx b/src/pages/subscription/manage/standard.tsx new file mode 100644 index 00000000..3dd71c29 --- /dev/null +++ b/src/pages/subscription/manage/standard.tsx @@ -0,0 +1,5 @@ +import SubscriptionManageStandard from "@Front/Components/Layouts/Subscription/Manage/SubscriptionManageStandard"; + +export default function Route() { + return ; +}