From a51dee6795efc8c63338571ade11a495619aaf75 Mon Sep 17 00:00:00 2001 From: Jakob Stornig Date: Tue, 2 Jan 2024 14:50:42 +0100 Subject: [PATCH] fix: image not shown --- app/(tabs)/stats/index.tsx | 2 +- components/stats/Widget.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(tabs)/stats/index.tsx b/app/(tabs)/stats/index.tsx index ae4c09f..9a2033a 100644 --- a/app/(tabs)/stats/index.tsx +++ b/app/(tabs)/stats/index.tsx @@ -53,7 +53,7 @@ export default function Page() { - + diff --git a/components/stats/Widget.tsx b/components/stats/Widget.tsx index b43a64f..153ed65 100644 --- a/components/stats/Widget.tsx +++ b/components/stats/Widget.tsx @@ -6,7 +6,7 @@ interface WidgetProps { title?: string; text?: string; children?: ReactNode; - image?: string; + image?: any; } const Widget: React.FC = ({ title, text, children, image }) => { // Add the 'image' prop to the destructuring @@ -54,7 +54,7 @@ const Widget: React.FC = ({ title, text, children, image }) => { // {!!title && {title}} {!!text && {text}} - {!!image && } + {!!image && } {children} );