Updated the App.jsx
This commit is contained in:
parent
00794b6320
commit
de9afccd7f
28
src/App.jsx
28
src/App.jsx
@ -1,11 +1,27 @@
|
|||||||
import { useState } from "react";
|
|
||||||
import "@/common/styles/fonts.sass";
|
import "@/common/styles/fonts.sass";
|
||||||
import "@/common/styles/main.sass";
|
import "@/common/styles/main.sass";
|
||||||
|
import {createBrowserRouter, RouterProvider} from "react-router-dom";
|
||||||
|
import Auth from "@/states/Auth";
|
||||||
|
import Manage from "@/states/Manage";
|
||||||
|
import Code from "@/states/Code";
|
||||||
|
|
||||||
|
export const AUTH_URL = "https://discord.com/api/oauth2/authorize?client_id=1017165319892107274&redirect_uri=http%3A%2F%2Flocalhost%3A5173%2Fcode&response_type=code&scope=identify%20guilds";
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
return (
|
const router = createBrowserRouter([
|
||||||
<>
|
{
|
||||||
<h2>Dashboard</h2>
|
path: "/code",
|
||||||
</>
|
element: <Code />
|
||||||
);
|
},
|
||||||
|
{
|
||||||
|
path: "/auth",
|
||||||
|
element: <Auth />
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
element: <Manage />
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
|
||||||
|
return <RouterProvider router={router}/>;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user