Skip to content

Commit 4ac0a61

Browse files
style: format code with Prettier
This commit fixes the style issues introduced in 427c74b according to the output from Prettier. Details: #17
1 parent 427c74b commit 4ac0a61

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/src/client/core/core.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DARK, LIGHT } from "../../constants";
22
import { ColorSchemePreference, ResolvedScheme, useStore } from "../../utils";
3-
import { useEffect } from "react";
3+
import { useEffect } from "react";
44
import { noFOUCScript } from "./no-fouc";
55

66
let media: MediaQueryList,
@@ -14,14 +14,13 @@ interface ScriptProps {
1414
}
1515

1616
/** Avoid rerender of script */
17-
const Script =
18-
({ n, k }: ScriptProps) => (
19-
<script
20-
suppressHydrationWarning
21-
// skipcq: JS-0440
22-
dangerouslySetInnerHTML={{ __html: `(${noFOUCScript.toString()})('${k}')` }}
23-
nonce={n}
24-
/>
17+
const Script = ({ n, k }: ScriptProps) => (
18+
<script
19+
suppressHydrationWarning
20+
// skipcq: JS-0440
21+
dangerouslySetInnerHTML={{ __html: `(${noFOUCScript.toString()})('${k}')` }}
22+
nonce={n}
23+
/>
2524
);
2625

2726
export interface CoreProps {

0 commit comments

Comments
 (0)