Remove unused dependencies and update routing
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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 (
|
||||
|
||||
9
src/routes/option-model.tsx
Normal file
9
src/routes/option-model.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import OptionLayout from "~components/Option/Layout"
|
||||
|
||||
export const OptionModal = () => {
|
||||
return (
|
||||
<OptionLayout>
|
||||
yo
|
||||
</OptionLayout>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user