-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
138 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BarDatum, ResponsiveBar, ResponsiveBarSvgProps } from '@nivo/bar'; | ||
import { useIsClient } from '~/hooks/useIsClient'; | ||
|
||
const ResponsiveBarBox = <RawDatum extends BarDatum>(props: ResponsiveBarSvgProps<RawDatum>) => { | ||
const isClient = useIsClient(); | ||
return <>{isClient && <ResponsiveBar {...props} />}</>; | ||
}; | ||
|
||
export default ResponsiveBarBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ResponsiveLine, LineSvgProps } from '@nivo/line'; | ||
import { useIsClient } from '~/hooks/useIsClient'; | ||
|
||
const ResponsiveLineBox = (props: LineSvgProps) => { | ||
const isClient = useIsClient(); | ||
return <>{isClient && <ResponsiveLine {...props} />}</>; | ||
}; | ||
|
||
export default ResponsiveLineBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
77e1e87
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
stats – ./
stats-nu-nine.vercel.app
stats-olros.vercel.app
stats-git-main-olros.vercel.app
stats.olafros.com