Turn on the cookie+origin filter by default

This commit is contained in:
Kuba Orlik 2021-11-07 19:30:54 +01:00
parent e40eebb521
commit 7577152d4f

View File

@ -7,6 +7,13 @@ export default function Options({
setCookiesOnly, setCookiesOnly,
cookiesOrOriginOnly, cookiesOrOriginOnly,
setCookiesOrOriginOnly, setCookiesOrOriginOnly,
}: {
minValueLength: number;
setMinValueLength: (n: number) => void;
cookiesOnly: boolean;
setCookiesOnly: (b: boolean) => void;
cookiesOrOriginOnly: boolean;
setCookiesOrOriginOnly: (b: boolean) => void;
}) { }) {
return ( return (
<fieldset> <fieldset>
@ -24,7 +31,7 @@ export default function Options({
<input <input
type="checkbox" type="checkbox"
id="cookiesOnly" id="cookiesOnly"
value={cookiesOnly} checked={cookiesOnly}
onChange={(e) => setCookiesOnly(e.target.checked)} onChange={(e) => setCookiesOnly(e.target.checked)}
/> />
<label htmlFor="cookiesOnly">Pokazuj tylko dane z cookiesów</label> <label htmlFor="cookiesOnly">Pokazuj tylko dane z cookiesów</label>
@ -32,7 +39,7 @@ export default function Options({
<input <input
type="checkbox" type="checkbox"
id="cookiesOrOriginOnly" id="cookiesOrOriginOnly"
value={cookiesOrOriginOnly} checked={cookiesOrOriginOnly}
onChange={(e) => setCookiesOrOriginOnly(e.target.checked)} onChange={(e) => setCookiesOrOriginOnly(e.target.checked)}
/> />
<label htmlFor="cookiesOrOriginOnly"> <label htmlFor="cookiesOrOriginOnly">