Skip to content

Commit bc04053

Browse files
authored
update storybook
1 parent 871018c commit bc04053

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.storybook/ComponentDemo.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const ComponentDemo = () => {
1515
className={classNames("header", { "header--sensor-visible": visible })}
1616
>
1717
<h1>{"<Observer />"}</h1>
18-
18+
{visible && <p>The sensor is visible</p>}
1919
<p>Scroll down</p>
2020
</header>
2121
<p>

.storybook/HookDemo.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const HookDemo = () => {
1515
className={classNames("header", { "header--sensor-visible": visible })}
1616
>
1717
<h1>useOnScreen()</h1>
18+
{visible && <p>The sensor is visible</p>}
1819

1920
<p>Scroll down</p>
2021
</header>

0 commit comments

Comments
 (0)