Skip to content

Commit

Permalink
feat: suspense in icons
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Jan 17, 2025
1 parent 346b2a0 commit 39dd6d1
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions docs/components/iconography/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,25 @@ import { IconProvider } from "./icon-context";
import { IconGrid } from "./icon-grid";
import { IconSearch } from "./icon-search";
import { IconSegmentedControl } from "./icon-segmented-control";
import { Suspense } from "react";

export const Icons = () => {
return (
<NuqsAdapter>
<IconProvider
iconData={{ monochrome: MonochromeData, multicolor: MulticolorData }}
iconComponents={{
monochrome: MonochormeComponents,
multicolor: MulticolorComponents,
}}
>
<IconSegmentedControl />
<IconSearch />
<IconGrid />
<IconBottomInfomation />
</IconProvider>
<Suspense>
<IconProvider
iconData={{ monochrome: MonochromeData, multicolor: MulticolorData }}
iconComponents={{
monochrome: MonochormeComponents,
multicolor: MulticolorComponents,
}}
>
<IconSegmentedControl />
<IconSearch />
<IconGrid />
<IconBottomInfomation />
</IconProvider>
</Suspense>
</NuqsAdapter>
);
};

0 comments on commit 39dd6d1

Please sign in to comment.