Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
roushou committed Jun 13, 2024
1 parent 4b55546 commit de40d85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions site/docs/components/ComponentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ const wagmiConfig = createConfig({
},
});

export function ComponentPreview(props: React.PropsWithChildren): JSX.Element | null {
export function ComponentPreview(
props: React.PropsWithChildren,
): JSX.Element | null {
const isServer = typeof window === 'undefined';
if (isServer) {
return null;
}
return (
<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={queryClient}>
<main className="flex min-h-72 items-center justify-center">{props.children}</main>
<main className="flex min-h-72 items-center justify-center">
{props.children}
</main>
</QueryClientProvider>
</WagmiProvider>
);
Expand Down

0 comments on commit de40d85

Please sign in to comment.