website refactor
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useState, FormEvent } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { routes } from '@/lib/routing/RouteConfig';
|
||||
import Input from '../ui/Input';
|
||||
import Button from '../ui/Button';
|
||||
import { useCreateDriver } from "@/lib/hooks/driver/useCreateDriver";
|
||||
@@ -70,7 +71,7 @@ export default function CreateDriverForm() {
|
||||
},
|
||||
{
|
||||
onSuccess: () => {
|
||||
router.push('/profile');
|
||||
router.push(routes.protected.profile);
|
||||
router.refresh();
|
||||
},
|
||||
onError: (error) => {
|
||||
|
||||
Reference in New Issue
Block a user