diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-29 21:17:38 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-29 21:17:38 +0100 |
| commit | 609411bd23d880fe8c901a6b67852048f8a7b2e4 (patch) | |
| tree | 25765d4a5bd533f82897f2bc735680f812684dce | |
| parent | c0feeec422aed951788dbfdb9fa1df380c56f1df (diff) | |
Do not pass boolean to className
| -rw-r--r-- | frontend/src/components/app/sidebars/topology/machine/UnitTabsComponent.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/components/app/sidebars/topology/machine/UnitTabsComponent.js b/frontend/src/components/app/sidebars/topology/machine/UnitTabsComponent.js index 569166d8..6599fefd 100644 --- a/frontend/src/components/app/sidebars/topology/machine/UnitTabsComponent.js +++ b/frontend/src/components/app/sidebars/topology/machine/UnitTabsComponent.js @@ -14,7 +14,7 @@ const UnitTabsComponent = () => { <Nav tabs> <NavItem> <NavLink - className={activeTab === 'cpu-units' && 'active'} + className={activeTab === 'cpu-units' ? 'active' : ''} onClick={() => { toggle('cpu-units') }} @@ -24,7 +24,7 @@ const UnitTabsComponent = () => { </NavItem> <NavItem> <NavLink - className={activeTab === 'gpu-units' && 'active'} + className={activeTab === 'gpu-units' ? 'active' : ''} onClick={() => { toggle('gpu-units') }} @@ -34,7 +34,7 @@ const UnitTabsComponent = () => { </NavItem> <NavItem> <NavLink - className={activeTab === 'memory-units' && 'active'} + className={activeTab === 'memory-units' ? 'active' : ''} onClick={() => { toggle('memory-units') }} @@ -44,7 +44,7 @@ const UnitTabsComponent = () => { </NavItem> <NavItem> <NavLink - className={activeTab === 'storage-units' && 'active'} + className={activeTab === 'storage-units' ? 'active' : ''} onClick={() => { toggle('storage-units') }} |
