Run eslint --fix.

This commit is contained in:
0x1eef 2023-09-27 16:36:16 -03:00
parent 5767e222cb
commit 1d790dbe6c

View file

@ -4,7 +4,7 @@ import { TResponse } from "/lib/response";
export function ResponseRenderer({ response }: {response: TResponse}) { export function ResponseRenderer({ response }: {response: TResponse}) {
const t = chrome.i18n.getMessage; const t = chrome.i18n.getMessage;
function YesOrNoLabel({yes}: {yes: boolean}) { function YesOrNoLabel({ yes }: {yes: boolean}) {
if (yes) { if (yes) {
return (<label className="label label-rounded label-success">{t("yes")}</label>); return (<label className="label label-rounded label-success">{t("yes")}</label>);
} else { } else {
@ -32,7 +32,7 @@ export function ResponseRenderer({ response }: {response: TResponse}) {
</div> </div>
<div className="row"> <div className="row">
<div>{t("tor_exit_node")}</div> <div>{t("tor_exit_node")}</div>
<div>{<YesOrNoLabel yes={response.isTorExitNode}/>}</div> <div><YesOrNoLabel yes={response.isTorExitNode}/></div>
</div> </div>
</div> </div>
); );