From 78e06eebb664a9060c0f961f54f8d8e7963a875e Mon Sep 17 00:00:00 2001 From: euxzy Date: Tue, 19 Aug 2025 20:01:33 +0700 Subject: [PATCH] feat(backoffice): slicing backoffice dimentorin - setting page --- .../_components/general.tsx | 61 +++++++++ .../_components/notification.tsx | 34 +++++ .../_components/payment.tsx | 50 ++++++++ .../_components/security.tsx | 35 ++++++ .../_components/user-roles-permission.tsx | 118 ++++++++++++++++++ .../(protected)/settings-dimentorin/page.tsx | 53 ++++++++ libs/ui/src/atoms/index.ts | 3 +- libs/ui/src/atoms/toggle/index.ts | 1 + libs/ui/src/atoms/toggle/toggle.tsx | 27 ++++ .../backoffice-sidebar/backoffice-sidebar.tsx | 5 +- 10 files changed, 385 insertions(+), 2 deletions(-) create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/_components/general.tsx create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/_components/notification.tsx create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/_components/payment.tsx create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/_components/security.tsx create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/_components/user-roles-permission.tsx create mode 100644 apps/backoffice/src/app/(protected)/settings-dimentorin/page.tsx create mode 100644 libs/ui/src/atoms/toggle/index.ts create mode 100644 libs/ui/src/atoms/toggle/toggle.tsx diff --git a/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/general.tsx b/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/general.tsx new file mode 100644 index 0000000..69ebee8 --- /dev/null +++ b/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/general.tsx @@ -0,0 +1,61 @@ +import { Button, Input, Select, ToggleInput } from "@imphnen-frontend-service/ui/atoms" +import { cn } from "@imphnen-frontend-service/utils" +import { FC } from "react" + +const labelClass = cn('text-neutral-800 text-[10px] font-medium mb-1.5 inline-block md:text-xs md:mb-2 xl:text-p3') + +export const GeneralSettings: FC = () => { + return ( +
+

General Settings

+ +
+ + +

Platform Settings

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +

Legal Settings

+
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+ ) +} diff --git a/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/notification.tsx b/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/notification.tsx new file mode 100644 index 0000000..10f010c --- /dev/null +++ b/apps/backoffice/src/app/(protected)/settings-dimentorin/_components/notification.tsx @@ -0,0 +1,34 @@ +import { Button, Textarea, ToggleInput } from "@imphnen-frontend-service/ui/atoms" +import { FC } from "react" + +export const NotificationSettings: FC = () => { + return ( +
+

Notification Settings

+ +
+
+ + + +
+ +
+ +