chore: update dependencies (#1543)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { FunctionComponent } from 'react'
|
||||
import { FunctionComponent, ReactNode } from 'react'
|
||||
|
||||
const PreferencesGroup: FunctionComponent = ({ children }) => (
|
||||
const PreferencesGroup: FunctionComponent<{
|
||||
children: ReactNode
|
||||
}> = ({ children }) => (
|
||||
<div className="mb-3 flex flex-col rounded border border-solid border-border bg-default p-6">{children}</div>
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FunctionComponent } from 'react'
|
||||
import { FunctionComponent, ReactNode } from 'react'
|
||||
|
||||
const PreferencesPane: FunctionComponent = ({ children }) => (
|
||||
const PreferencesPane: FunctionComponent<{ children?: ReactNode }> = ({ children }) => (
|
||||
<div className="flex min-h-0 flex-grow flex-col overflow-y-auto text-foreground md:flex-row">
|
||||
<div className="flex flex-grow flex-col items-center px-3 py-6 md:px-0">
|
||||
<div className="flex flex-col md:w-125 md:max-w-125">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { FunctionComponent } from 'react'
|
||||
import { FunctionComponent, ReactNode } from 'react'
|
||||
|
||||
type Props = {
|
||||
children: ReactNode
|
||||
classes?: string
|
||||
}
|
||||
const PreferencesSegment: FunctionComponent<Props> = ({ children, classes = '' }) => (
|
||||
|
||||
Reference in New Issue
Block a user