website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -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) => {