File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import TransactionsPage from "./pages/TransactionsPage.tsx";
1919import BannersPage from "./pages/BannersPage.tsx" ;
2020import EmailSender from "./pages/EmailSender.tsx" ;
2121import Store from "./pages/Store.tsx" ;
22+ import AccommodationPage from "./pages/AccommodationPage.tsx" ;
2223import { ThemeProvider } from "./contexts/ThemeContext" ;
2324import "./styles/dark-theme.css" ;
2425
@@ -182,6 +183,16 @@ const App: React.FC = () => {
182183 </ DashboardLayout >
183184 }
184185 />
186+ < Route
187+ path = "/accommodation"
188+ element = {
189+ < DashboardLayout >
190+ < ProtectedRoute allowedRoles = { [ "admin" ] } >
191+ < AccommodationPage />
192+ </ ProtectedRoute >
193+ </ DashboardLayout >
194+ }
195+ />
185196 < Route
186197 path = "/users/:userId"
187198 element = {
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ import {
1414 BsEnvelope ,
1515 BsList ,
1616 BsChevronLeft ,
17- BsShop
17+ BsShop ,
18+ BsHouseDoor
1819} from "react-icons/bs" ;
1920import satLogo from "../../public/sat-logo.png" ;
2021// import useCurrentUser from "../hooks/useCurrentUser";
@@ -164,6 +165,19 @@ const Sidebar: React.FC = () => {
164165 { ! isCollapsed && < span className = "ms-3" > Store</ span > }
165166 </ NavLink >
166167 </ Tooltip >
168+
169+ < Tooltip text = "Accommodation" show = { isCollapsed && hoveredItem === 'accommodation' } >
170+ < NavLink
171+ to = "/accommodation"
172+ className = { ( { isActive } ) => getNavLinkClasses ( isActive ) }
173+ style = { { textDecoration : 'none' , transition : 'all 0.2s ease' } }
174+ onMouseEnter = { ( ) => setHoveredItem ( 'accommodation' ) }
175+ onMouseLeave = { ( ) => setHoveredItem ( null ) }
176+ >
177+ < BsHouseDoor size = { ICON_SIZE } />
178+ { ! isCollapsed && < span className = "ms-3" > Accommodation</ span > }
179+ </ NavLink >
180+ </ Tooltip >
167181
168182 < Tooltip text = "Coupons" show = { isCollapsed && hoveredItem === 'coupons' } >
169183 < NavLink
You can’t perform that action at this time.
0 commit comments