From 0641568215af2722da43bad78068fbdc1b39a6d4 Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Sun, 28 Mar 2021 13:00:17 +0900 Subject: [PATCH] types: changed tag text prop type --- components/Tag.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Tag.tsx b/components/Tag.tsx index f352539..22eb44e 100644 --- a/components/Tag.tsx +++ b/components/Tag.tsx @@ -1,4 +1,5 @@ import Link from 'next/link' +import { ReactNode } from 'react' const Tag = ({ blurple = false, @@ -92,7 +93,7 @@ interface LabelProps { blurple?: boolean github?: boolean href?: string - text: string | JSX.Element | JSX.Element[] + text: ReactNode className?: string icon?: string circular?: boolean