Remove unused dependencies and update routing

This commit is contained in:
n4ze3m
2024-02-17 00:01:07 +05:30
parent 8e6cd7eca8
commit d763c286c1
9 changed files with 57 additions and 83 deletions

View File

@@ -3,6 +3,7 @@ import { SidepanelChat } from "./sidepanel-chat"
import { useDarkMode } from "~hooks/useDarkmode"
import { SidepanelSettings } from "./sidepanel-settings"
import { OptionIndex } from "./option-index"
import { OptionModal } from "./option-model"
export const OptionRouting = () => {
const { mode } = useDarkMode()
@@ -11,6 +12,7 @@ export const OptionRouting = () => {
<div className={mode === "dark" ? "dark" : "light"}>
<Routes>
<Route path="/" element={<OptionIndex />} />
<Route path="/models" element={<OptionModal />} />
</Routes>
</div>
)

View File

@@ -1,7 +1,5 @@
import OptionLayout from "~components/Option/Layout"
import { Playground } from "~components/Option/Playground/Playground"
import { SettingsBody } from "~components/Sidepanel/Settings/body"
import { SidepanelSettingsHeader } from "~components/Sidepanel/Settings/header"
export const OptionIndex = () => {
return (

View File

@@ -0,0 +1,9 @@
import OptionLayout from "~components/Option/Layout"
export const OptionModal = () => {
return (
<OptionLayout>
yo
</OptionLayout>
)
}