diff --git a/res/css/views/dialogs/_DevtoolsDialog.scss b/res/css/views/dialogs/_DevtoolsDialog.scss index 22975f0c52..500c46b5fd 100644 --- a/res/css/views/dialogs/_DevtoolsDialog.scss +++ b/res/css/views/dialogs/_DevtoolsDialog.scss @@ -195,7 +195,7 @@ limitations under the License. border-radius: 3px; padding: 1px 5px; margin-bottom: 6px; - font-family: "Inconsolata", courier; + font-family: $monospace-font-family; dl { display: grid; @@ -222,4 +222,4 @@ limitations under the License. dt::after { content: ":"; } -} \ No newline at end of file +} diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index ade23c90f1..0452e88dfa 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -30,7 +30,7 @@ import { PHASE_DONE, PHASE_STARTED, PHASE_CANCELLED, -} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest" +} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest"; class GenericEditor extends React.PureComponent { // static propTypes = {onBack: PropTypes.func.isRequired}; @@ -621,7 +621,7 @@ const PHASE_MAP = { [PHASE_DONE]: "done", [PHASE_STARTED]: "started", [PHASE_CANCELLED]: "cancelled", -} +}; function VerificationRequest({txnId, request}) { const [, updateState] = useState(); @@ -631,18 +631,18 @@ function VerificationRequest({txnId, request}) { useEffect(() => { request.on("change", updateState); return () => request.off("change", updateState); - }, []); + }, [request]); /* Keep re-rendering if there's a timeout */ useEffect(() => { - if (timeout == 0) return; + if (request.timeout == 0) return; const id = setInterval(() => { setTimeout(request.timeout); }, 500); - return () => { clearInterval(id); } - }, []); + return () => { clearInterval(id); }; + }, [request]); return (