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