|
@@ -115,15 +115,17 @@ export default function ExitNodeSelector({
|
|
|
</button>
|
|
</button>
|
|
|
{(advertising || using) && (
|
|
{(advertising || using) && (
|
|
|
<button
|
|
<button
|
|
|
- className={cx("px-3 py-2 rounded-sm text-white cursor-pointer", {
|
|
|
|
|
|
|
+ className={cx("px-3 py-2 rounded-sm text-white", {
|
|
|
"bg-orange-400": advertising,
|
|
"bg-orange-400": advertising,
|
|
|
"bg-indigo-400": using,
|
|
"bg-indigo-400": using,
|
|
|
|
|
+ "cursor-not-allowed": disabled,
|
|
|
})}
|
|
})}
|
|
|
onClick={(e) => {
|
|
onClick={(e) => {
|
|
|
e.preventDefault()
|
|
e.preventDefault()
|
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
|
handleSelect(noExitNode)
|
|
handleSelect(noExitNode)
|
|
|
}}
|
|
}}
|
|
|
|
|
+ disabled={disabled}
|
|
|
>
|
|
>
|
|
|
Disable
|
|
Disable
|
|
|
</button>
|
|
</button>
|