diff --git a/src/App.tsx b/src/App.tsx index 1c6a0805..3478e15a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import './App.css' import { TamaguiProvider } from 'tamagui' import { Provider as StatusProvider } from '@status-im/components' -import { Pie } from '@nivo/pie' +import { ResponsivePie } from '@nivo/pie' import config from '../tamagui.config' @@ -11,19 +11,17 @@ interface Data { value: number color: string } -interface MyPieProps { +interface StandartGaugeProps { data: Data[] } -const MyPie = (props: MyPieProps) => { +const StandartGauge = (props: StandartGaugeProps) => { const { data } = props - console.log(data.color) + return ( <> - datum.data.color} @@ -49,7 +47,7 @@ function App() { { id: 'javascript', label: 'javascript', - value: 30, + value: 40, color: '#ecedf0', }, ] @@ -57,7 +55,9 @@ function App() { return ( - +
+ +
)