not show payment plan on employee view
parent
234511e5a4
commit
5e73a168f9
|
@ -101,7 +101,6 @@ export function SideMenuContent({
|
|||
};
|
||||
|
||||
const showPaymentPlanInfoBanner =
|
||||
sideBarContext.permissions.includes("paymentPlan") &&
|
||||
sideBarContext.paymentPlanStatus === "trialing" &&
|
||||
sideBarContext.paymentPlanTrialEnd !== null &&
|
||||
sideBarContext.paymentPlanCanceledAt !== null;
|
||||
|
@ -124,7 +123,10 @@ export function SideMenuContent({
|
|||
);
|
||||
}
|
||||
|
||||
if (!showPaymentPlanInfoBanner) {
|
||||
if (
|
||||
sideBarContext.permissions.includes("paymentPlan") &&
|
||||
!showPaymentPlanInfoBanner
|
||||
) {
|
||||
items.push({
|
||||
label: t("sideMenu.paymentPlan"),
|
||||
icon: <WalletOutlined />,
|
||||
|
@ -233,7 +235,8 @@ export function SideMenuContent({
|
|||
<div>
|
||||
<Divider style={{ margin: 0 }} />
|
||||
|
||||
{showPaymentPlanInfoBanner && (
|
||||
{sideBarContext.permissions.includes("paymentPlan") &&
|
||||
showPaymentPlanInfoBanner && (
|
||||
<Card
|
||||
style={{ backgroundColor: "#6878d6", margin: 8 }}
|
||||
styles={{ body: { padding: 10 } }}
|
||||
|
|
Loading…
Reference in New Issue