From 77e4089503e434512084f09cd1a06715c11e1289 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Mon, 7 Aug 2023 14:32:32 +0300 Subject: [PATCH] Fix names --- src/App.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ( - +
+ +
)