From 7ca223873668613cd5b9a4aa06947e3046629098 Mon Sep 17 00:00:00 2001 From: Ilya Schetchikov Date: Tue, 25 Aug 2020 08:58:23 +0300 Subject: [PATCH] Update types.ts Support for the < tspan> element for the text field --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index d86c746..c4cde3b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -25,7 +25,7 @@ export type CircularProgressbarDefaultProps = { minValue: number; strokeWidth: number; styles: CircularProgressbarStyles; - text: string; + text: React.ReactNode; }; // These are used for any CircularProgressbar wrapper components that can safely @@ -47,7 +47,7 @@ export type CircularProgressbarWrapperProps = { minValue?: number; strokeWidth?: number; styles?: CircularProgressbarStyles; - text?: string; + text?: React.ReactNode; value: number; };