queue creation logic
This commit is contained in:
@ -11,6 +11,8 @@ import DashboardPage from "./DashboardPage";
|
||||
import PropTypes from "prop-types";
|
||||
import { useSelector } from "react-redux";
|
||||
import NotFoundPage from "./NotFoundPage";
|
||||
import CreateQueueCard from "../components/queue/CreateQueueCard";
|
||||
import NewQueuePage from "./NewQueuePage";
|
||||
|
||||
const AppRoutes = ({ children }: { children: ReactNode }) => {
|
||||
store.dispatch(getLocalToken());
|
||||
@ -22,6 +24,7 @@ const AppRoutes = ({ children }: { children: ReactNode }) => {
|
||||
<Routes>
|
||||
<Route path="/" element={<MainPage />} />
|
||||
<Route path="/dashboard" element={<DashboardPage />} />
|
||||
<Route path="/dashboard/new" element={<NewQueuePage />} />
|
||||
<Route path="*" element={<NotFoundPage />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
|
||||
Reference in New Issue
Block a user