Use backticks to build className
This commit is contained in:
parent
6ec914e738
commit
e7fd95e2cd
|
@ -7,7 +7,7 @@ function Sidebar() {
|
||||||
useSidebarVisibility();
|
useSidebarVisibility();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`sidebar ${sidebarVisibility}`}>
|
<div className={`sidebar sidebar-${sidebarVisibility}`}>
|
||||||
<SidebarHeader sidebarVisibility={sidebarVisibility} />
|
<SidebarHeader sidebarVisibility={sidebarVisibility} />
|
||||||
<div className="sidebar-footer">
|
<div className="sidebar-footer">
|
||||||
<button onClick={toggleSidebarVisibility}>{sidebarToggleText}</button>
|
<button onClick={toggleSidebarVisibility}>{sidebarToggleText}</button>
|
||||||
|
|
Loading…
Reference in New Issue