Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
const { lang: _lang, translations } = state;
return (
<footer class="text-center text-xs w-full py-1 mt-10 mb-20">
{/* deno-lint-ignore react-no-danger */}
<div
class="py-1"
dangerouslySetInnerHTML={{

Check failure on line 13 in components/Footer.tsx

View workflow job for this annotation

GitHub Actions / Verify

Do not use `dangerouslySetInnerHTML`
__html: translations.index.footer.development,
}}
>
</div>
{/* deno-lint-ignore react-no-danger */}
<div
class="py-1"
dangerouslySetInnerHTML={{

Check failure on line 21 in components/Footer.tsx

View workflow job for this annotation

GitHub Actions / Verify

Do not use `dangerouslySetInnerHTML`
__html: translations.index.footer.created,
}}
>
Expand Down
2 changes: 1 addition & 1 deletion islands/ButtonPrint.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const ButtonPrint = () => {
const handlePrint = () => {
window.print();
globalThis.print();
};

return (
Expand Down
3 changes: 2 additions & 1 deletion islands/DarkMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DarkMode = () => {
const savedTheme = localStorage.getItem("theme");
const isDarkModeClient = savedTheme
? savedTheme === "dark"
: window.matchMedia("(prefers-color-scheme: dark)").matches;
: globalThis.matchMedia("(prefers-color-scheme: dark)").matches;
if (isDarkModeClient) {
setIsDarkMode(true);
}
Expand All @@ -30,6 +30,7 @@ const DarkMode = () => {

return (
<button
type="button"
onClick={toggleDarkMode}
className="print:hidden"
>
Expand Down
1 change: 1 addition & 0 deletions routes/[lang]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
<ul class="ml-6 list-disc col-span-full text-slate-800/90 dark:text-slate-200/80 text-pretty text-sm">
{section.items.map((item, index) => (
<li key={index}>
{/* deno-lint-ignore react-no-danger */}
<div
dangerouslySetInnerHTML={{

Check failure on line 48 in routes/[lang]/index.tsx

View workflow job for this annotation

GitHub Actions / Verify

Do not use `dangerouslySetInnerHTML`
__html: item,
}}
>
Expand Down
2 changes: 1 addition & 1 deletion routes/_404.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Head } from "$fresh/runtime.ts";
import { pageProps } from "$fresh/server.ts";
export default function Error404({ message }: pageProps<{ message: string }>) {
export default function Error404(_props: pageProps<{ message: string }>) {
return (
<>
<Head>
Expand Down
1 change: 1 addition & 0 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
<ul class="ml-6 list-disc col-span-full text-slate-800/90 dark:text-slate-200/80 text-pretty text-sm">
{section.items.map((item, index) => (
<li key={index}>
{/* deno-lint-ignore react-no-danger */}
<div
dangerouslySetInnerHTML={{

Check failure on line 47 in routes/index.tsx

View workflow job for this annotation

GitHub Actions / Verify

Do not use `dangerouslySetInnerHTML`
__html: item,
}}
>
Expand Down
Loading