From 1a30b30ef2080ed6cc9de82242e60bbac2169cea Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 21 Oct 2024 15:10:41 +0200 Subject: [PATCH] Add onclick for simple text component --- src/components/SimpleText/SimpleText.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/SimpleText/SimpleText.tsx b/src/components/SimpleText/SimpleText.tsx index 813b832..8d83d58 100644 --- a/src/components/SimpleText/SimpleText.tsx +++ b/src/components/SimpleText/SimpleText.tsx @@ -34,6 +34,8 @@ type Props = { center?: boolean; bold?: boolean; + + onClick?: () => void; }; export function SimpleText({ @@ -41,6 +43,7 @@ export function SimpleText({ className = "", center, size = "normal", + onClick, style, children, bold, @@ -49,14 +52,14 @@ export function SimpleText({ if (size === "small") { return ( - + {children} ); } return ( - + {children} );