Use backticks to build className
This commit is contained in:
parent
6ec914e738
commit
e7fd95e2cd
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue