init SidebarTitle
UI component
This commit is contained in:
parent
774c01d9b7
commit
fbb3865ac1
@ -28,6 +28,7 @@ import {VehicleList, VehicleCreate, VehicleEdit, VehicleShow} from './pages/vehi
|
|||||||
import {RouteList, RouteCreate, RouteEdit, RouteShow} from './pages/route'
|
import {RouteList, RouteCreate, RouteEdit, RouteShow} from './pages/route'
|
||||||
|
|
||||||
import {CountryIcon, CityIcon, CarrierIcon, MediaIcon, ArticleIcon, SightIcon, StationIcon, VehicleIcon, RouteIcon} from './components/ui/Icons'
|
import {CountryIcon, CityIcon, CarrierIcon, MediaIcon, ArticleIcon, SightIcon, StationIcon, VehicleIcon, RouteIcon} from './components/ui/Icons'
|
||||||
|
import SidebarTitle from './components/ui/SidebarTitle'
|
||||||
import {BACKEND_URL} from './lib/constants'
|
import {BACKEND_URL} from './lib/constants'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
@ -169,7 +170,7 @@ function App() {
|
|||||||
<Route
|
<Route
|
||||||
element={
|
element={
|
||||||
<Authenticated key="authenticated-inner" fallback={<CatchAllNavigate to="/login" />}>
|
<Authenticated key="authenticated-inner" fallback={<CatchAllNavigate to="/login" />}>
|
||||||
<ThemedLayoutV2 Header={Header}>
|
<ThemedLayoutV2 Header={Header} Title={SidebarTitle}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</ThemedLayoutV2>
|
</ThemedLayoutV2>
|
||||||
</Authenticated>
|
</Authenticated>
|
||||||
|
3
src/components/ui/SidebarTitle.tsx
Normal file
3
src/components/ui/SidebarTitle.tsx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export default function SidebarTitle({collapsed}: {collapsed: boolean}) {
|
||||||
|
return <div style={{whiteSpace: 'nowrap'}}>{collapsed ? 'БН' : 'Белые ночи'}</div>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user