diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json
index 3575db0..9d953d5 100644
--- a/public/locales/de/translation.json
+++ b/public/locales/de/translation.json
@@ -118,11 +118,7 @@
},
"support": "Unterstützung",
"feedback": "Feedback",
- "accountPlan": {
- "infoDaysLeft": "{{daysLeft}} {{dayUnit}} verbleibend",
- "buttonExtend": "Plan verlängern",
- "buttonManage": "Plan verwalten"
- }
+ "paymentPlan": "Zahlungsplan"
},
"employees": {
"pageTitle": "Mitarbeiter",
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 5a98be8..60365be 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -118,11 +118,7 @@
},
"support": "Support",
"feedback": "Feedback",
- "accountPlan": {
- "infoDaysLeft": "{{daysLeft}} {{dayUnit}} left",
- "buttonExtend": "Extend plan",
- "buttonManage": "Manage plan"
- }
+ "paymentPlan": "Payment plan"
},
"employees": {
"pageTitle": "Employees",
diff --git a/src/Components/SideMenu/index.js b/src/Components/SideMenu/index.js
index b875ac8..b63b051 100644
--- a/src/Components/SideMenu/index.js
+++ b/src/Components/SideMenu/index.js
@@ -8,10 +8,11 @@ import {
ShopOutlined,
TeamOutlined,
UserOutlined,
+ WalletOutlined,
} from "@ant-design/icons";
-import { Button, Card, Divider, Flex, Menu, Typography } from "antd";
+import { Divider, Menu } from "antd";
import { useEffect, useState } from "react";
-import { Link, useLocation, useNavigate } from "react-router-dom";
+import { useLocation, useNavigate } from "react-router-dom";
import { BreakpointLgWidth, Constants, isDevelopmentEnv } from "../../utils";
import { useTranslation } from "react-i18next";
import { useSideBarContext } from "../../Contexts/SideBarContext";
@@ -31,6 +32,8 @@ export function SideMenuContent({
const navigate = useNavigate();
+ console.log("selectedKeys", selectedKeys);
+
const getFirstMenuItems = () => {
let items = [
{
@@ -117,6 +120,12 @@ export function SideMenuContent({
);
}
+ items.push({
+ label: t("sideMenu.paymentPlan"),
+ icon: ,
+ key: Constants.ROUTE_PATHS.PAYMENT_PLAN,
+ });
+
items.push({
label: sideBarContext.username,
icon: ,
@@ -153,17 +162,6 @@ export function SideMenuContent({
}
}, [location.pathname]);
- const calculateExpiry = () => {
- const currentDate = new Date();
- const expiryDate = new Date(sideBarContext.accountPlanExpiry);
- const diffTime = Math.abs(expiryDate - currentDate);
- const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
-
- return diffDays;
- };
-
- const accountPlanExpiry = calculateExpiry();
-
return (
- {sideBarContext.accountPlanExpiry !== undefined &&
+
+
+ );
+}
+
+/*
+ const calculateExpiry = () => {
+ const currentDate = new Date();
+ const expiryDate = new Date(sideBarContext.accountPlanExpiry);
+ const diffTime = Math.abs(expiryDate - currentDate);
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
+
+ return diffDays;
+ };
+
+ const accountPlanExpiry = calculateExpiry();
+
+{sideBarContext.accountPlanExpiry !== undefined &&
accountPlanExpiry > 0 && (
)}
-
-