refactor: usage of useForm hook from react-component-form

This commit is contained in:
Divlo
2022-08-28 18:26:56 +02:00
parent 7c01246028
commit 351834633f
44 changed files with 818 additions and 1241 deletions

View File

@ -1,5 +1,5 @@
import { forwardRef } from 'react'
import classNames from 'classnames'
import classNames from 'clsx'
const className =
'py-2 px-6 font-paragraph rounded-lg bg-transparent border hover:text-white dark:hover:text-black fill-current stroke-current transform transition-colors duration-300 ease-in-out focus:outline-none focus:text-white dark:focus:text-black'

View File

@ -1,4 +1,4 @@
import classNames from 'classnames'
import classNames from 'clsx'
export interface CheckboxProps extends React.ComponentPropsWithRef<'input'> {
className?: string

View File

@ -1,7 +1,7 @@
import classNames from 'classnames'
import classNames from 'clsx'
import useTranslation from 'next-translate/useTranslation'
import type { FetchState as FormStateType } from 'react-component-form'
import { FetchState as FormStateType } from '../../../hooks/useFetchState'
import { Loader } from '../Loader'
export interface FormStateProps extends React.ComponentPropsWithoutRef<'div'> {

View File

@ -1,4 +1,4 @@
import classNames from 'classnames'
import classNames from 'clsx'
export interface IconButtonProps
extends React.ComponentPropsWithoutRef<'button'> {}

View File

@ -1,5 +1,5 @@
import Link from 'next/link'
import classNames from 'classnames'
import classNames from 'clsx'
export interface IconLinkProps {
selected?: boolean

View File

@ -1,7 +1,7 @@
import { useState } from 'react'
import Link from 'next/link'
import useTranslation from 'next-translate/useTranslation'
import classNames from 'classnames'
import classNames from 'clsx'
import { FormState } from '../FormState'

View File

@ -1,4 +1,4 @@
import classNames from 'classnames'
import classNames from 'clsx'
export interface MainProps {
className?: string

View File

@ -1,6 +1,6 @@
import { useMemo } from 'react'
import Image from 'next/image'
import classNames from 'classnames'
import classNames from 'clsx'
import { ProviderOAuth } from '../../../models/OAuth'