Skip to content

Commit e1b6631

Browse files
committed
chore: Added GSC requirements for verification.
1 parent b1f00b5 commit e1b6631

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

dev/components/examples/example-base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createSignal, FlowProps, JSX, Show } from 'solid-js';
33

44
type ExampleBaseProps = {
55
title: JSX.Element;
6-
description: string;
6+
description: JSX.Element;
77
class?: string;
88
code?: JSX.Element;
99
};

dev/components/examples/use-local-storage/use-local-storage.example.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ export function UseLocalStorageExample() {
1717
return (
1818
<ExampleBase
1919
title="useLocalStorage"
20-
description="A hook that allows using value from the localStorage as a signal The hook works the same way as createSignal, but also writes the value to the localStorage."
20+
description={
21+
<>
22+
A hook that allows using value from the localStorage as a signal The hook works the same
23+
way as createSignal, but also writes the value to the localStorage.
24+
<br />
25+
<br />
26+
To test, try changing the value with two tabs open.
27+
</>
28+
}
2129
code={<Code components={components} />}
2230
>
2331
<div class="flex h-full w-full flex-col items-center justify-center gap-3 rounded-md border p-3 py-10 text-center transition-colors">
@@ -36,7 +44,7 @@ export function UseLocalStorageExample() {
3644
</Key>
3745
</div>
3846

39-
<span class="text-neutral-500">Favorite Fruit: {value()}</span>
47+
<span class="text-sm text-neutral-500">Favorite Fruit: {value()}</span>
4048
</div>
4149
</ExampleBase>
4250
);

dev/components/examples/use-toggle/use-toggle.example.tsx

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { useToggle } from 'src';
22
import { ExampleBase } from '../example-base';
33
import Code from './use-toggle.code.mdx';
44

5+
import { createMemo, FlowProps } from 'solid-js';
56
import { useMDXComponents } from 'solid-jsx';
6-
import { createMemo, createSignal, FlowProps, VoidProps } from 'solid-js';
77

88
export function UseToggleExample() {
99
const [value, toggle] = useToggle(['apple', 'orange', 'grape', 'kiwi'] as const);
@@ -12,21 +12,10 @@ export function UseToggleExample() {
1212
const components: any = useMDXComponents();
1313

1414
const color = createMemo(() => {
15-
if (value() === 'apple') {
16-
return '#e5312f';
17-
}
18-
19-
if (value() === 'orange') {
20-
return '#fc8627';
21-
}
22-
23-
if (value() === 'grape') {
24-
return '#bc3d73';
25-
}
26-
27-
if (value() === 'kiwi') {
28-
return '#acc144';
29-
}
15+
if (value() === 'apple') return '#e5312f';
16+
if (value() === 'orange') return '#fc8627';
17+
if (value() === 'grape') return '#bc3d73';
18+
if (value() === 'kiwi') return '#acc144';
3019

3120
return undefined;
3221
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google7c5ebde40744f824.html

0 commit comments

Comments
 (0)