feat : update rights from admin user.

This commit is contained in:
2025-09-12 15:35:52 +05:30
parent 3a006bf3c1
commit b7a454f53b
3 changed files with 354 additions and 344 deletions

View File

@@ -145,19 +145,19 @@ export default function Login() {
<Divider my="xs" label="Menu" labelPosition="center" />
<Stack>
<Text td="underline" variant="light" style={{ cursor: 'pointer' }} onClick={() => handleClick('UserConf')}>
<IconUsers size ="15"/> User Configuration
<IconUsers size="15" /> User Configuration
</Text>
<Text td="underline" variant="light" style={{ cursor: 'pointer' }} onClick={() => handleClick('ViewUser')}>
<IconEye size ="15"/> View User Configuration
<IconEye size="15" /> View User Configuration
</Text>
<Text td="underline" variant="light" style={{ cursor: 'pointer' }} onClick={handleLogout}>
<IconLogout size ="15"/> Logout
<IconLogout size="15" /> Logout
</Text>
</Stack>
</Box>
{/* Main Content Area */}
<Stack style={{ flex: 1, padding: '1rem'}}>
<Stack style={{ flex: 1, padding: '1rem' }}>
<Box>
<Text c="Blue" size="lg" fs='italic'>Welcome ,{name} </Text>
<Text size="xs" c="gray" style={{ fontFamily: "inter", fontSize: '13px' }}>
@@ -166,14 +166,15 @@ export default function Login() {
</Box>
<Box>
{view === 'userConf' && <UserConfiguration />}
{view === 'view' && <Text size="xl"><ViewUserConfiguration/></Text>}
{view === 'view' && <Text size="xl"><ViewUserConfiguration /></Text>}
{!view &&
<Text size="xl">Welcome To The Admin Portal</Text>
}
</Box>
</Stack>
</Box>
<Text size="sm" style={{textAlign:"center"}}>© 2025 The Kangra Central Co-Operative Bank</Text>
<Divider size="xs" color='#99c2ff' />
<Text size="sm" style={{ textAlign: "center" }}>© 2025 The Kangra Central Co-Operative Bank</Text>
</div>
</Providers>
);