chore: update dependencies (#1543)

This commit is contained in:
Aman Harwara
2022-09-14 02:42:25 +05:30
committed by GitHub
parent e7839cb141
commit 896bb22f64
60 changed files with 565 additions and 200 deletions

View File

@@ -1,20 +1,28 @@
import { FunctionComponent } from 'react'
import { FunctionComponent, ReactNode } from 'react'
export const Title: FunctionComponent = ({ children }) => (
type ChildrenProp = {
children: ReactNode
}
export const Title: FunctionComponent<ChildrenProp> = ({ children }) => (
<>
<h2 className="m-0 mb-1 text-lg font-bold text-info md:text-base">{children}</h2>
</>
)
export const Subtitle: FunctionComponent<{ className?: string }> = ({ children, className = '' }) => (
type Props = {
className?: string
} & ChildrenProp
export const Subtitle: FunctionComponent<Props> = ({ children, className = '' }) => (
<h4 className={`m-0 mb-1 text-sm font-medium ${className}`}>{children}</h4>
)
export const SubtitleLight: FunctionComponent<{ className?: string }> = ({ children, className = '' }) => (
export const SubtitleLight: FunctionComponent<Props> = ({ children, className = '' }) => (
<h4 className={`m-0 mb-1 text-sm font-normal ${className}`}>{children}</h4>
)
export const Text: FunctionComponent<{ className?: string }> = ({ children, className = '' }) => (
export const Text: FunctionComponent<Props> = ({ children, className = '' }) => (
<p className={`${className} text-sm md:text-xs`}>{children}</p>
)