diff --git a/src/Components/AppRoutes/index.js b/src/Components/AppRoutes/index.js
index 3306ab5..2cb5654 100644
--- a/src/Components/AppRoutes/index.js
+++ b/src/Components/AppRoutes/index.js
@@ -8,6 +8,7 @@ import Verification from "../../Pages/Verification";
// Lazy-loaded components
const Authentication = lazy(() => import("../../Pages/Authentication"));
const Dashboard = lazy(() => import("../../Pages/Dashboard"));
+const PaymentPlan = lazy(() => import("../../Pages/PaymentPlan"));
const PageNotFound = lazy(() => import("../../Pages/PageNotFound"));
const PageInDevelopment = lazy(() => import("../../Pages/PageInDevelopment"));
const StoreSettings = lazy(() => import("../../Pages/Store/Settings"));
@@ -15,7 +16,6 @@ const StoreEmployees = lazy(() => import("../../Pages/Store/Employees"));
const StoreServices = lazy(() => import("../../Pages/Store/Services"));
const StoreCalendar = lazy(() => import("../../Pages/Store/Calendar"));
const StoreCalendarAuth = lazy(() => import("../../Pages/Store/Calendar/Auth"));
-const StoreWebsite = lazy(() => import("../../Pages/Store/Website"));
//const Support = lazy(() => import("../../Pages/Support"));
//const Feedback = lazy(() => import("../../Pages/Feedback"));
const UserProfile = lazy(() => import("../../Pages/UserProfile"));
diff --git a/src/Pages/PaymentPlan/index.js b/src/Pages/PaymentPlan/index.js
new file mode 100644
index 0000000..9be66d9
--- /dev/null
+++ b/src/Pages/PaymentPlan/index.js
@@ -0,0 +1,3 @@
+export default function PaymentPlan() {
+ return
test
;
+}
diff --git a/src/Pages/Store/Website/Banner/index.js b/src/Pages/Store/Website/Banner/index.js
deleted file mode 100644
index 9198cd5..0000000
--- a/src/Pages/Store/Website/Banner/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function Banner() {
- return (
- <>
- Banner
- >
- );
-}
diff --git a/src/Pages/Store/Website/ColorPalette/index.js b/src/Pages/Store/Website/ColorPalette/index.js
deleted file mode 100644
index 7c887a2..0000000
--- a/src/Pages/Store/Website/ColorPalette/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function ColorPalette() {
- return ColorPalette
;
-}
diff --git a/src/Pages/Store/Website/General/index.js b/src/Pages/Store/Website/General/index.js
deleted file mode 100644
index d5d68e4..0000000
--- a/src/Pages/Store/Website/General/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function General() {
- return General
;
-}
diff --git a/src/Pages/Store/Website/index.js b/src/Pages/Store/Website/index.js
deleted file mode 100644
index 03531c7..0000000
--- a/src/Pages/Store/Website/index.js
+++ /dev/null
@@ -1,150 +0,0 @@
-import { lazy, useEffect, useState } from "react";
-import { isDevelopmentEnv, myFetch } from "../../../utils";
-import { useParams } from "react-router-dom";
-import MyCenteredContainer from "../../../Components/MyContainer";
-import { Button, Card, Result, Spin, Tabs, notification } from "antd";
-import { useTranslation } from "react-i18next";
-import { MySupsenseFallback } from "../../../Components/MySupsenseFallback";
-import PageInDevelopment from "../../PageInDevelopment";
-
-const General = lazy(() => import("./General"));
-const Banner = lazy(() => import("./Banner"));
-const ColorPalette = lazy(() => import("./ColorPalette"));
-
-export default function Website() {
- const { storeId } = useParams();
- const { t } = useTranslation();
- const [notificationApi, notificationContextHolder] =
- notification.useNotification();
-
- const [isRequesting, setIsRequesting] = useState(true);
- const [website, setWebsite] = useState({});
-
- const [activeTab, setActiveTab] = useState(0);
-
- const tabItems = [
- {
- label: t("storeWebsite.tabs.general"),
- children: ,
- },
- {
- label: t("storeWebsite.tabs.banner"),
- children: ,
- },
- {
- label: t("storeWebsite.tabs.colorPalette"),
- children: ,
- },
- ].map((item, index) => {
- return {
- key: index,
- ...item,
- children: (
-
- {item.children}
-
- ),
- };
- });
-
- useEffect(() => {
- myFetch({
- url: `/website/${storeId}`,
- method: "GET",
- notificationApi: notificationApi,
- t: t,
- })
- .then(() => setIsRequesting(false))
- .catch((err) => {
- setIsRequesting(false);
-
- if (err === 404) setWebsite(null);
-
- console.log(err);
- });
- }, []);
-
- if (!isDevelopmentEnv()) return ;
-
- if (isRequesting) {
- return (
-
-
-
- );
- }
-
- if (!website) {
- return ;
- }
-
- return (
- <>
- {notificationContextHolder}
-
-
- setActiveTab(key)}
- />
-
- >
- );
-}
-
-function NoWebsiteCreateOne({ setWebsite }) {
- const { t } = useTranslation();
- const [notificationApi, notificationContextHolder] =
- notification.useNotification();
-
- const { storeId } = useParams();
-
- const [isRequesting, setIsRequesting] = useState(false);
-
- const handleCreateWebsite = () => {
- setIsRequesting(true);
-
- myFetch({
- url: "/website",
- method: "POST",
- body: {
- storeId,
- },
- notificationApi: notificationApi,
- t: t,
- })
- .then((res) => {
- console.log(res);
-
- setWebsite({});
- })
- .catch((err) => {
- setIsRequesting(false);
-
- console.log(err);
- });
- };
-
- return (
-
- {notificationContextHolder}
-
-
- {t("storeWebsite.noWebsite.button")}
-
- }
- />
-
- );
-}