Skip to content

Commit

Permalink
feat(component-docs): React.Suspense in ComponentExample
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Oct 8, 2024
1 parent 2de665e commit e76b7e1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions component-docs/src/components/ComponentExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export function ComponentExample(props: ComponentExampleProps) {

return (
<ErrorBoundary>
<React.Suspense fallback={null}>
<Tabs items={["미리보기", "코드"]}>
<Tabs.Tab>
<Tabs items={["미리보기", "코드"]}>
<Tabs.Tab>
<React.Suspense fallback={null}>
<div
style={{
minHeight: "300px",
Expand All @@ -48,12 +48,12 @@ export function ComponentExample(props: ComponentExampleProps) {
>
{Preview}
</div>
</Tabs.Tab>
<Tabs.Tab>
<React.Suspense fallback={null}>{Code}</React.Suspense>
</Tabs.Tab>
</Tabs>
</React.Suspense>
</React.Suspense>
</Tabs.Tab>
<Tabs.Tab>
<React.Suspense fallback={null}>{Code}</React.Suspense>
</Tabs.Tab>
</Tabs>
</ErrorBoundary>
);
}

0 comments on commit e76b7e1

Please sign in to comment.