Browse Source

fix(web): add missing routes

pull/72/head
isra el 11 months ago
parent
commit
fe63728387
  1. 8
      web/app/(app)/(auth)/(components)/login-form.tsx
  2. 8
      web/app/(app)/(auth)/(components)/register-form.tsx
  3. 2
      web/config/routes.ts

8
web/app/(app)/(auth)/(components)/login-form.tsx

@ -74,7 +74,7 @@ export default function LoginForm() {
<Input <Input
placeholder='m@example.com' placeholder='m@example.com'
{...field} {...field}
className='bg-white'
className='dark:text-white dark:bg-gray-800'
/> />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
@ -88,7 +88,11 @@ export default function LoginForm() {
<FormItem> <FormItem>
<FormLabel>Password</FormLabel> <FormLabel>Password</FormLabel>
<FormControl> <FormControl>
<Input type='password' {...field} className='bg-white' />
<Input
type='password'
{...field}
className='dark:text-white dark:bg-gray-800'
/>
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>

8
web/app/(app)/(auth)/(components)/register-form.tsx

@ -88,7 +88,7 @@ export default function RegisterForm() {
<FormItem> <FormItem>
<FormLabel>Full Name</FormLabel> <FormLabel>Full Name</FormLabel>
<FormControl> <FormControl>
<Input placeholder='John Doe' {...field} />
<Input placeholder='John Doe' {...field} className='dark:text-white dark:bg-gray-800' />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@ -101,7 +101,7 @@ export default function RegisterForm() {
<FormItem> <FormItem>
<FormLabel>Email</FormLabel> <FormLabel>Email</FormLabel>
<FormControl> <FormControl>
<Input placeholder='m@example.com' {...field} />
<Input placeholder='m@example.com' {...field} className='dark:text-white dark:bg-gray-800' />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@ -114,7 +114,7 @@ export default function RegisterForm() {
<FormItem> <FormItem>
<FormLabel>Password</FormLabel> <FormLabel>Password</FormLabel>
<FormControl> <FormControl>
<Input type='password' {...field} />
<Input type='password' {...field} className='dark:text-white dark:bg-gray-800' />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@ -127,7 +127,7 @@ export default function RegisterForm() {
<FormItem> <FormItem>
<FormLabel>Phone (optional)</FormLabel> <FormLabel>Phone (optional)</FormLabel>
<FormControl> <FormControl>
<Input placeholder='+1 (555) 000-0000' {...field} />
<Input placeholder='+1 (555) 000-0000' {...field} className='dark:text-white dark:bg-gray-800' />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>

2
web/config/routes.ts

@ -1,6 +1,8 @@
export const Routes = { export const Routes = {
landingPage: '/', landingPage: '/',
contribute: '/contribute', contribute: '/contribute',
useCases: '/use-cases',
quickstart: '/quickstart',
login: '/login', login: '/login',
register: '/register', register: '/register',
logout: '/logout', logout: '/logout',

Loading…
Cancel
Save