11"use client"
22
33import React from "react" ;
4- import {
5- Button ,
6- Flex ,
7- ScrollArea ,
8- ScrollAreaScrollbar ,
9- ScrollAreaThumb ,
10- ScrollAreaViewport ,
11- Text
12- } from "@code0-tech/pictor" ;
4+ import { Button , ScrollArea , ScrollAreaScrollbar , ScrollAreaThumb , ScrollAreaViewport , Text } from "@code0-tech/pictor" ;
135import { Tab , TabList , TabTrigger } from "@code0-tech/pictor/dist/components/tab/Tab" ;
146import { RoleProjectView } from "@edition/role/views/RoleProjectView" ;
157import { RolePermissionView } from "@edition/role/views/RolePermissionView" ;
168import { RoleGeneralAdjustmentView } from "@edition/role/views/RoleGeneralAdjustmentView" ;
179import { RoleDeleteView } from "@edition/role/views/RoleDeleteView" ;
18- import { IconLayoutSidebar } from "@tabler/icons-react" ;
1910import {
2011 ResizableHandle ,
2112 ResizablePanel ,
2213 ResizablePanelGroup
2314} from "@code0-tech/pictor/dist/components/resizable/Resizable" ;
15+ import { SidebarComponent } from "@core/components/SidebarComponent" ;
2416
2517export const RoleSettingsPage : React . FC = ( ) => {
2618
@@ -29,48 +21,35 @@ export const RoleSettingsPage: React.FC = () => {
2921 return < >
3022 < Tab orientation = { "vertical" } defaultValue = { "general" } h = { "100%" } >
3123 < ResizablePanelGroup >
32- < ResizablePanel id = { "1" } defaultSize = { "20%" } collapsedSize = { "0%" }
33- collapsible minSize = { "10%" } style = { { textWrap : "nowrap" } } >
34- < Flex style = { { flexDirection : "column" , gap : "0.7rem" } } >
35- < Flex style = { { gap : "0.7rem" } } align = { "center" } justify = { "space-between" } >
36- < Text size = { "md" } hierarchy = { "secondary" } > Role settings</ Text >
37-
38- < Button variant = { "none" } paddingSize = { "xxs" } >
39- < IconLayoutSidebar size = { 16 } />
24+ < SidebarComponent id = { "1" }
25+ title = { "Role settings" }
26+ description = { "General settings and restrictions for your Sculptor application. These settings affect all users and organizations within the application." } >
27+ < TabList >
28+ < TabTrigger value = { "general" } w = { "100%" } asChild >
29+ < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
30+ < Text size = { "md" } > General</ Text >
4031 </ Button >
41- </ Flex >
42- < Text size = { "sm" } hierarchy = { "tertiary" } style = { { textWrap : "wrap" } } >
43- General settings and restrictions for your Sculptor application. These settings affect all
44- users
45- and organizations within the application.
46- </ Text >
47- < TabList pr = { "0.7" } >
48- < TabTrigger value = { "general" } w = { "100%" } asChild >
49- < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
50- < Text size = { "md" } > General</ Text >
51- </ Button >
52- </ TabTrigger >
53- < TabTrigger value = { "permission" } w = { "100%" } asChild >
54- < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
55- < Text size = { "md" } > Permissions</ Text >
56- </ Button >
57- </ TabTrigger >
58- < TabTrigger value = { "project" } w = { "100%" } asChild >
59- < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
60- < Text size = { "md" } > Limit to projects</ Text >
61- </ Button >
62- </ TabTrigger >
63- < TabTrigger value = { "delete" } w = { "100%" } asChild >
64- < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
65- < Text size = { "md" } > Delete role</ Text >
66- </ Button >
67- </ TabTrigger >
68- </ TabList >
69- </ Flex >
70- </ ResizablePanel >
32+ </ TabTrigger >
33+ < TabTrigger value = { "permission" } w = { "100%" } asChild >
34+ < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
35+ < Text size = { "md" } > Permissions</ Text >
36+ </ Button >
37+ </ TabTrigger >
38+ < TabTrigger value = { "project" } w = { "100%" } asChild >
39+ < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
40+ < Text size = { "md" } > Limit to projects</ Text >
41+ </ Button >
42+ </ TabTrigger >
43+ < TabTrigger value = { "delete" } w = { "100%" } asChild >
44+ < Button paddingSize = { "xxs" } variant = { "none" } justify = { "start" } >
45+ < Text size = { "md" } > Delete role</ Text >
46+ </ Button >
47+ </ TabTrigger >
48+ </ TabList >
49+ </ SidebarComponent >
7150 < ResizableHandle />
7251 < ResizablePanel id = { "2" } color = { "primary" } p = { 1 }
73- style = { { borderTopLeftRadius : "1rem" , borderTopRightRadius : "1rem" } } >
52+ style = { { borderTopLeftRadius : "1rem" , borderTopRightRadius : "1rem" } } >
7453 < ScrollArea h = { "100%" } w = { "100%" } type = { "scroll" } >
7554 < ScrollAreaViewport >
7655 < RoleGeneralAdjustmentView />
0 commit comments