File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
22import Text from '@chakra-ui/core/dist/Text'
33import Flex from '@chakra-ui/core/dist/Flex'
44import Box from '@chakra-ui/core/dist/Box'
5- import { defaultTheme as theme } from '@47ng/ chakra-next '
5+ import { useTheme } from '@chakra-ui/core/dist/ThemeProvider '
66import { LeaderboardEntry } from '@chiffre/analytics-processing'
77import { PieDatum } from '@nivo/pie'
88import { LeaderboardEntryView } from './EntryView'
@@ -32,6 +32,7 @@ export const Leaderboard: React.FC<LeadeboardProps> = ({
3232 showPercentByDefault = false ,
3333 pieData
3434} ) => {
35+ const theme = useTheme ( )
3536 const [ showPercent , setShowPercent ] = React . useState ( showPercentByDefault )
3637
3738 const data = React . useMemo ( ( ) => {
Original file line number Diff line number Diff line change 11import React from 'react'
2- import { defaultTheme as theme } from '@47ng/chakra-next'
2+ import { useTheme } from '@chakra-ui/core/dist/ThemeProvider'
3+ import { Theme } from '@47ng/chakra-next'
34import { ResponsivePie , PieDatum } from '@nivo/pie'
45
56export interface PieChartProps {
@@ -8,6 +9,7 @@ export interface PieChartProps {
89}
910
1011export const PieChart : React . FC < PieChartProps > = ( { data, showPercent } ) => {
12+ const theme = useTheme ( ) as Theme
1113 return (
1214 < ResponsivePie
1315 colors = { [
You can’t perform that action at this time.
0 commit comments