hide popup when click setting
This commit is contained in:
@@ -103,7 +103,7 @@ export default function Action() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Paper>
|
<Paper>
|
||||||
<Popup />
|
<Popup setShowPopup={setShowPopup} />
|
||||||
</Paper>
|
</Paper>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
<Draggable
|
<Draggable
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
MSG_TRANS_CURRULE,
|
MSG_TRANS_CURRULE,
|
||||||
} from "../../config";
|
} from "../../config";
|
||||||
|
|
||||||
export default function Popup() {
|
export default function Popup({ setShowPopup }) {
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
const [rule, setRule] = useState(null);
|
const [rule, setRule] = useState(null);
|
||||||
|
|
||||||
@@ -31,6 +31,7 @@ export default function Popup() {
|
|||||||
} else {
|
} else {
|
||||||
window.open(process.env.REACT_APP_OPTIONSPAGE, "_blank");
|
window.open(process.env.REACT_APP_OPTIONSPAGE, "_blank");
|
||||||
}
|
}
|
||||||
|
setShowPopup && setShowPopup(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleTransToggle = async (e) => {
|
const handleTransToggle = async (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user