From fbb3865ac1d36be94adabcfdd6d792ca198e94e6 Mon Sep 17 00:00:00 2001 From: maxim Date: Wed, 19 Feb 2025 14:32:33 +0300 Subject: [PATCH] init `SidebarTitle` UI component --- src/App.tsx | 3 ++- src/components/ui/SidebarTitle.tsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/components/ui/SidebarTitle.tsx 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 ? 'БН' : 'Белые ночи'}
+}