fix: improve messaging on dashboard
This commit is contained in:
parent
f07fb50eff
commit
c09ca3b810
|
@ -40,9 +40,9 @@ interface LinkItemProps {
|
||||||
route: string;
|
route: string;
|
||||||
}
|
}
|
||||||
const LinkItems: Array<LinkItemProps> = [
|
const LinkItems: Array<LinkItemProps> = [
|
||||||
{ name: 'Home', icon: FiHome, route: '/' },
|
// { name: 'Home', icon: FiHome, route: '/' },
|
||||||
|
{ name: 'Environment Variables', icon: FiSettings, route: '/' },
|
||||||
{ name: 'Users', icon: FiUsers, route: '/users' },
|
{ name: 'Users', icon: FiUsers, route: '/users' },
|
||||||
{ name: 'Environment Variables', icon: FiSettings, route: '/environment' },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
interface SidebarProps extends BoxProps {
|
interface SidebarProps extends BoxProps {
|
||||||
|
|
|
@ -73,17 +73,25 @@ export default function Auth() {
|
||||||
fontWeight="bold"
|
fontWeight="bold"
|
||||||
mb="2"
|
mb="2"
|
||||||
>
|
>
|
||||||
Hi there 👋 <br />
|
Hello Admin 👋 <br />
|
||||||
</Text>
|
</Text>
|
||||||
<Text fontSize="large" textAlign="center" color="gray.500" mb="8">
|
<Text fontSize="large" textAlign="center" color="gray.500" mb="8">
|
||||||
Welcome to Authorizer Administrative Dashboard
|
Welcome to Admin Dashboard
|
||||||
</Text>
|
</Text>
|
||||||
<form onSubmit={handleSubmit}>
|
<form onSubmit={handleSubmit}>
|
||||||
<VStack spacing="5" justify="space-between">
|
<VStack spacing="5" justify="space-between">
|
||||||
<FormControl isRequired>
|
<FormControl isRequired>
|
||||||
{/* <FormLabel htmlFor="admin-secret">
|
<FormLabel htmlFor="admin-username">Username</FormLabel>
|
||||||
{isLogin ? 'Enter' : 'Configure'} Admin Secret
|
<Input
|
||||||
</FormLabel> */}
|
size="lg"
|
||||||
|
id="admin-username"
|
||||||
|
placeholder="Username"
|
||||||
|
disabled
|
||||||
|
value="admin"
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
<FormControl isRequired>
|
||||||
|
<FormLabel htmlFor="admin-secret">Password</FormLabel>
|
||||||
<Input
|
<Input
|
||||||
size="lg"
|
size="lg"
|
||||||
id="admin-secret"
|
id="admin-secret"
|
||||||
|
@ -111,10 +119,7 @@ export default function Auth() {
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
) : (
|
||||||
<Text color="gray.600" fontSize="sm">
|
<Text color="gray.600" fontSize="sm">
|
||||||
<b>Note:</b> You can also configure admin secret by setting{' '}
|
<b>Note:</b> Configure the password to start using your dashboard.
|
||||||
<code>ADMIN_SECRET</code> environment variable. For more
|
|
||||||
information, please refer to the{' '}
|
|
||||||
<a href="https://docs.authorizer.dev/core/env/">documentation</a>.
|
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
</VStack>
|
</VStack>
|
||||||
|
|
|
@ -23,7 +23,7 @@ export const AppRoutes = () => {
|
||||||
</DashboardLayout>
|
</DashboardLayout>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Route path="/" element={<Home />} />
|
<Route path="/" element={<Environment />} />
|
||||||
<Route path="users" element={<Users />} />
|
<Route path="users" element={<Users />} />
|
||||||
<Route path="environment" element={<Environment />} />
|
<Route path="environment" element={<Environment />} />
|
||||||
<Route path="*" element={<Home />} />
|
<Route path="*" element={<Home />} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user