Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Employee_Managment_App/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ function App() {
isOpen={sbIsOpen}
type={sbType as any}
position="Left"
className='app-nav-sidebar'
showBackdrop={!isDesktop}
closeOnDocumentClick={!isDesktop}
open={() => {
Expand Down
6 changes: 2 additions & 4 deletions Employee_Managment_App/src/components/EmployeeInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,12 @@ const EmployeeInfo = (props: { employeeData?: EmployeeDetails; userInfo?: Employ
<TabItemDirective header={headerText[0]} content={content0} />
{employeeData &&
userInfo &&
(userInfo.Name === employeeData.Name ||
userInfo.Name === employeeData.TeamLead) && (
(userInfo.Name === employeeData.Name) && (
<TabItemDirective header={headerText[1]} content={content1} />
)}
{employeeData &&
userInfo &&
(userInfo.Name === employeeData.Name ||
userInfo.Name === employeeData.TeamLead) && (
(userInfo.Name === employeeData.Name) && (
<TabItemDirective header={headerText[2]} content={content2} />
)}
{employeeData &&
Expand Down
9 changes: 5 additions & 4 deletions Employee_Managment_App/src/components/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,10 @@ const TopNav: React.FC<TopNavProps> = ({
if (avatarRef.current && !avatarRef.current.contains(ev.target as Node)) {
setAvatarMenuOpen(false);
}
if (createRef.current && !createRef.current.contains(ev.target as Node)) {
setCreateMenuOpen(false);
}
};
const handleEsc = (e: KeyboardEvent) => {
if (e.key === 'Escape') {
setAvatarMenuOpen(false);
setCreateMenuOpen(false);
setMobileSearchOpen(false);
setPanelOpen(false);
}
Expand Down Expand Up @@ -203,6 +199,11 @@ const TopNav: React.FC<TopNavProps> = ({
</svg>
</ButtonComponent>

<button className="icon-btn" type="button" onClick={onOpenChat} title="Messages">
<svg width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="M21 6H3v12h5v4l4-4h9z" />
</svg>

<div className="btn-create-group" ref={createRef}>
<ButtonComponent
cssClass="btn-create"
Expand Down
4 changes: 4 additions & 0 deletions Employee_Managment_App/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -54932,6 +54932,10 @@ ejs-sidebar {
display: block;
}

.e-sidebar.app-nav-sidebar {
overflow: hidden;
}

.e-menu-wrapper.e-hamburger .e-popup.e-menu-popup,
.e-menu-container.e-hamburger .e-popup.e-menu-popup {
border: 0;
Expand Down