diff --git a/src/App.tsx b/src/App.tsx index ce50955..6dcd738 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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() { }> - + diff --git a/src/components/ui/SidebarTitle.tsx b/src/components/ui/SidebarTitle.tsx new file mode 100644 index 0000000..c26d895 --- /dev/null +++ b/src/components/ui/SidebarTitle.tsx @@ -0,0 +1,3 @@ +export default function SidebarTitle({collapsed}: {collapsed: boolean}) { + return
{collapsed ? 'БН' : 'Белые ночи'}
+}