Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created April 12, 2024 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axilaris/5954e10e2b7b597815a56030f34feacc to your computer and use it in GitHub Desktop.
Save axilaris/5954e10e2b7b597815a56030f34feacc to your computer and use it in GitHub Desktop.
<AppSidebarNav items={navigation()} />
<CSidebarHeader className="border-top">
<CSidebarNav>
<CNavItem href="#" onClick={handleLogout}>
<CIcon customClassName="nav-icon" icon={cilAccountLogout}style={{marginLeft: unfoldable ? "0px" : "-20px", float: "left"}} />
Logout
</CNavItem>
</CSidebarNav>
</CSidebarHeader>
<CSidebarFooter style={{ cursor: 'pointer' }}>
<CSidebarToggler
onClick={() => {
dispatch({ type: 'set', sidebarUnfoldable: !unfoldable });
setSidebarExpand(!sidebarExpand);
}}
/>
</CSidebarFooter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment