Use backticks to build className

This commit is contained in:
qvalentin 2023-01-10 19:04:53 +01:00
parent 6ec914e738
commit e7fd95e2cd
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ function Sidebar() {
useSidebarVisibility();
return (
<div className={`sidebar ${sidebarVisibility}`}>
<div className={`sidebar sidebar-${sidebarVisibility}`}>
<SidebarHeader sidebarVisibility={sidebarVisibility} />
<div className="sidebar-footer">
<button onClick={toggleSidebarVisibility}>{sidebarToggleText}</button>