types: changed tag text prop type

This commit is contained in:
wonderlandpark 2021-03-28 13:00:17 +09:00
parent 93c250b62f
commit 0641568215

View File

@ -1,4 +1,5 @@
import Link from 'next/link' import Link from 'next/link'
import { ReactNode } from 'react'
const Tag = ({ const Tag = ({
blurple = false, blurple = false,
@ -92,7 +93,7 @@ interface LabelProps {
blurple?: boolean blurple?: boolean
github?: boolean github?: boolean
href?: string href?: string
text: string | JSX.Element | JSX.Element[] text: ReactNode
className?: string className?: string
icon?: string icon?: string
circular?: boolean circular?: boolean