Add Sidepanel Settings Body component and update button styles in EmptySidePanel component

This commit is contained in:
n4ze3m
2024-02-04 00:56:42 +05:30
parent be3a4ed256
commit 5958e10354
9 changed files with 271 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
import { Route, Routes } from "react-router-dom"
import { SidepanelChat } from "./sidepanel-chat"
import { SidepanelSettingsHeader } from "~components/Sidepanel/Settings/header"
import { useDarkMode } from "~hooks/useDarkmode"
import { SidepanelSettings } from "./sidepanel-settings"
export const Routing = () => <Routes></Routes>
@@ -12,7 +12,7 @@ export const SidepanelRouting = () => {
<div className={mode === "dark" ? "dark" : "light"}>
<Routes>
<Route path="/" element={<SidepanelChat />} />
<Route path="/settings" element={<SidepanelSettingsHeader />} />
<Route path="/settings" element={<SidepanelSettings />} />
</Routes>
</div>
)

View File

@@ -1,3 +1,4 @@
import { SettingsBody } from "~components/Sidepanel/Settings/body"
import { SidepanelSettingsHeader } from "~components/Sidepanel/Settings/header"
export const SidepanelSettings = () => {
@@ -6,6 +7,7 @@ export const SidepanelSettings = () => {
<div className="sticky top-0 z-10">
<SidepanelSettingsHeader />
</div>
<SettingsBody />
</div>
)
}