mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
fix sites toggle hover states
This commit is contained in:
committed by
Franc Camps-Febrer
parent
bf012ebed9
commit
87f2f5c796
@@ -1,7 +1,10 @@
|
||||
import React from 'react';
|
||||
|
||||
const SitesIcon = ({ isEnabled, onClickHandler }) => {
|
||||
const classes = (isEnabled) ? 'action-button enabled' : 'action-button disabled';
|
||||
const SitesIcon = ({ isActive, isDisabled, onClickHandler }) => {
|
||||
let classes = (isActive) ? 'action-button enabled' : 'action-button';
|
||||
if (isDisabled) {
|
||||
classes = 'action-button disabled'
|
||||
}
|
||||
|
||||
return (
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user