init SidebarTitle UI component

This commit is contained in:
maxim 2025-02-19 14:32:33 +03:00
parent 774c01d9b7
commit fbb3865ac1
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import {VehicleList, VehicleCreate, VehicleEdit, VehicleShow} from './pages/vehi
import {RouteList, RouteCreate, RouteEdit, RouteShow} from './pages/route'
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'
function App() {
@ -169,7 +170,7 @@ function App() {
<Route
element={
<Authenticated key="authenticated-inner" fallback={<CatchAllNavigate to="/login" />}>
<ThemedLayoutV2 Header={Header}>
<ThemedLayoutV2 Header={Header} Title={SidebarTitle}>
<Outlet />
</ThemedLayoutV2>
</Authenticated>

View File

@ -0,0 +1,3 @@
export default function SidebarTitle({collapsed}: {collapsed: boolean}) {
return <div style={{whiteSpace: 'nowrap'}}>{collapsed ? 'БН' : 'Белые ночи'}</div>
}