mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 15:53:24 +00:00
Add domain + add extension id for firefox
This commit is contained in:
@@ -4,6 +4,7 @@ import './ToggleButton.css';
|
||||
export interface ToggleButtonProps {
|
||||
onClick?: () => void;
|
||||
active?: boolean;
|
||||
domain: string;
|
||||
}
|
||||
|
||||
export function ToggleButton(props: ToggleButtonProps) {
|
||||
@@ -35,7 +36,7 @@ export function ToggleButton(props: ToggleButtonProps) {
|
||||
</button>
|
||||
</div>
|
||||
<p>
|
||||
Extension {props.active ? 'enabled' : 'disabled'} <br /> on <strong>movie-web.app</strong>
|
||||
Extension {props.active ? 'enabled' : 'disabled'} <br /> on <strong>{props.domain}</strong>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
@@ -13,7 +13,7 @@ function IndexPopup() {
|
||||
return (
|
||||
<Frame>
|
||||
<div className="popup">
|
||||
{!domain ? <DisabledScreen /> : <ToggleButton active={isWhitelisted} onClick={toggle} />}
|
||||
{!domain ? <DisabledScreen /> : <ToggleButton active={isWhitelisted} onClick={toggle} domain={domain} />}
|
||||
<BottomLabel />
|
||||
</div>
|
||||
</Frame>
|
||||
|
Reference in New Issue
Block a user