From de1c5aaf8e01ee8eb01fb0161bc21b03f6379e96 Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 16 Apr 2024 12:08:11 +0200 Subject: [PATCH] Modulate navbar with subscriptions rules --- src/front/Api/Entities/rule.ts | 2 ++ .../Components/DesignSystem/Header/Navigation/index.tsx | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/front/Api/Entities/rule.ts b/src/front/Api/Entities/rule.ts index 764f4720..d71b3856 100644 --- a/src/front/Api/Entities/rule.ts +++ b/src/front/Api/Entities/rule.ts @@ -18,4 +18,6 @@ export enum AppRuleNames { offices = "offices", documents = "documents", rib = "rib", + subscriptions = "subscriptions", + stripe = "stripe", } diff --git a/src/front/Components/DesignSystem/Header/Navigation/index.tsx b/src/front/Components/DesignSystem/Header/Navigation/index.tsx index e926c670..3ac31b2d 100644 --- a/src/front/Components/DesignSystem/Header/Navigation/index.tsx +++ b/src/front/Components/DesignSystem/Header/Navigation/index.tsx @@ -157,6 +157,12 @@ export default function Navigation() { Module.getInstance().get().modules.pages.Subscription.pages.New.props.path, Module.getInstance().get().modules.pages.Subscription.pages.Subscribe.props.path, ], + rules: [ + { + action: AppRuleActions.update, + name: AppRuleNames.subscriptions, + }, + ], }, ]} />