⚒️ Add minor frontend tweaks (#1210)
This commit is contained in:
@@ -21,13 +21,13 @@ const Appearance = () => {
|
|||||||
<Stack>
|
<Stack>
|
||||||
{/* TODO: Add system default option */}
|
{/* TODO: Add system default option */}
|
||||||
<Radio value="light" colorScheme="teal">
|
<Radio value="light" colorScheme="teal">
|
||||||
Light mode
|
Light Mode
|
||||||
<Badge ml="1" colorScheme="teal">
|
<Badge ml="1" colorScheme="teal">
|
||||||
Default
|
Default
|
||||||
</Badge>
|
</Badge>
|
||||||
</Radio>
|
</Radio>
|
||||||
<Radio value="dark" colorScheme="teal">
|
<Radio value="dark" colorScheme="teal">
|
||||||
Dark mode
|
Dark Mode
|
||||||
</Radio>
|
</Radio>
|
||||||
</Stack>
|
</Stack>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
@@ -53,14 +53,18 @@ const ChangePassword = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Container maxW="full" as="form" onSubmit={handleSubmit(onSubmit)}>
|
<Container maxW="full">
|
||||||
<Heading size="sm" py={4}>
|
<Heading size="sm" py={4}>
|
||||||
Change Password
|
Change Password
|
||||||
</Heading>
|
</Heading>
|
||||||
<Box w={{ sm: "full", md: "50%" }}>
|
<Box
|
||||||
|
w={{ sm: "full", md: "50%" }}
|
||||||
|
as="form"
|
||||||
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
|
>
|
||||||
<FormControl isRequired isInvalid={!!errors.current_password}>
|
<FormControl isRequired isInvalid={!!errors.current_password}>
|
||||||
<FormLabel color={color} htmlFor="current_password">
|
<FormLabel color={color} htmlFor="current_password">
|
||||||
Current password
|
Current Password
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<Input
|
<Input
|
||||||
id="current_password"
|
id="current_password"
|
||||||
|
@@ -78,11 +78,15 @@ const UserInformation = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Container maxW="full" as="form" onSubmit={handleSubmit(onSubmit)}>
|
<Container maxW="full">
|
||||||
<Heading size="sm" py={4}>
|
<Heading size="sm" py={4}>
|
||||||
User Information
|
User Information
|
||||||
</Heading>
|
</Heading>
|
||||||
<Box w={{ sm: "full", md: "50%" }}>
|
<Box
|
||||||
|
w={{ sm: "full", md: "50%" }}
|
||||||
|
as="form"
|
||||||
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
|
>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel color={color} htmlFor="name">
|
<FormLabel color={color} htmlFor="name">
|
||||||
Full name
|
Full name
|
||||||
|
@@ -35,8 +35,8 @@ export const confirmPasswordRules = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isRequired) {
|
if (isRequired) {
|
||||||
rules.required = "Password confirmation is required";
|
rules.required = "Password confirmation is required"
|
||||||
}
|
}
|
||||||
|
|
||||||
return rules;
|
return rules
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user