Loading web/src/components/sidebar_header/assets/css/styles.css 0 → 100644 +11 −0 Original line number Diff line number Diff line .sidebar_header { height: 64px; min-height: 64px; display: flex; align-items: center; padding: 0 20px; } .sidebar_header_content{ } No newline at end of file web/src/components/sidebar_header/sidebar_header.tsx 0 → 100644 +18 −0 Original line number Diff line number Diff line import { UserRole } from '../../constants/roles'; import { useAuth } from '../../context/auth_context'; import './assets/css/styles.css'; export const SidebarHeader = () => { const {user} = useAuth(); if(!user){ return null; } return ( <div className='sidebar_header'> <div className='sidebar_header_content'> <h2>{user.role==UserRole.SUPERADMIN ? 'Superadmin': 'Admin'} Panel</h2> </div> </div> ); } No newline at end of file Loading
web/src/components/sidebar_header/assets/css/styles.css 0 → 100644 +11 −0 Original line number Diff line number Diff line .sidebar_header { height: 64px; min-height: 64px; display: flex; align-items: center; padding: 0 20px; } .sidebar_header_content{ } No newline at end of file
web/src/components/sidebar_header/sidebar_header.tsx 0 → 100644 +18 −0 Original line number Diff line number Diff line import { UserRole } from '../../constants/roles'; import { useAuth } from '../../context/auth_context'; import './assets/css/styles.css'; export const SidebarHeader = () => { const {user} = useAuth(); if(!user){ return null; } return ( <div className='sidebar_header'> <div className='sidebar_header_content'> <h2>{user.role==UserRole.SUPERADMIN ? 'Superadmin': 'Admin'} Panel</h2> </div> </div> ); } No newline at end of file