diff --git a/src/routes/index.ts b/src/routes/index.ts deleted file mode 100644 index 3232998..0000000 --- a/src/routes/index.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { createBrowserRouter } from 'react-router-dom'; -import { HomePage } from '../components/home/HomePage'; -import { LoginForm } from '../components/auth/LoginForm'; -import { SchoolRegistrationForm } from '../components/auth/SchoolRegistrationForm'; -import { RegistrationForm } from '../components/RegistrationForm'; -import { StoryViewer } from '../components/StoryViewer'; -import { AuthCallback } from '../pages/AuthCallback'; -import { DashboardLayout } from '../pages/dashboard/DashboardLayout'; -import { DashboardHome } from '../pages/dashboard/DashboardHome'; -import { ClassesPage } from '../pages/dashboard/classes/ClassesPage'; -import { CreateClassPage } from '../pages/dashboard/classes/CreateClassPage'; -import { TeachersPage } from '../pages/dashboard/teachers/TeachersPage'; -import { InviteTeacherPage } from '../pages/dashboard/teachers/InviteTeacherPage'; -import { StudentsPage } from '../pages/dashboard/students/StudentsPage'; -import { AddStudentPage } from '../pages/dashboard/students/AddStudentPage'; - -export const router = createBrowserRouter([ - { - path: '/', - element: , - }, - { - path: '/login', - children: [ - { - path: 'school', - element: , - }, - { - path: 'teacher', - element: , - }, - { - path: 'student', - element: , - } - ] - }, - { - path: '/register', - children: [ - { - path: 'school', - element: , - }, - { - path: 'teacher', - element: { - // Adicione aqui a lógica para lidar com os dados do usuário - // Por exemplo, redirecionar para outra página ou salvar os dados - console.log(userData); - }} - />, - } - ] - }, - { - path: '/dashboard', - element: , - children: [ - { - index: true, - element: , - }, - { - path: 'turmas', - children: [ - { - index: true, - element: , - }, - { - path: 'nova', - element: , - } - ] - }, - { - path: 'professores', - children: [ - { - index: true, - element: , - }, - { - path: 'convidar', - element: , - } - ] - }, - { - path: 'alunos', - children: [ - { - index: true, - element: , - }, - { - path: 'novo', - element: , - } - ] - } - ] - }, - { - path: '/demo', - element: , - }, - { - path: '/auth/callback', - element: - }, -]); \ No newline at end of file diff --git a/src/routes/index.tsx b/src/routes/index.tsx index c31ae92..2d093fc 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -13,6 +13,7 @@ import { TeachersPage } from '../pages/dashboard/teachers/TeachersPage'; import { InviteTeacherPage } from '../pages/dashboard/teachers/InviteTeacherPage'; import { StudentsPage } from '../pages/dashboard/students/StudentsPage'; import { AddStudentPage } from '../pages/dashboard/students/AddStudentPage'; +import React from 'react'; export const router = createBrowserRouter([ { @@ -70,7 +71,7 @@ export const router = createBrowserRouter([ element: , }, { - path: 'nova', + path: 'nova', element: , } ]