Skip to content

Commit

Permalink
feat(pass-reset): replaced interfaces with types
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeffer committed Dec 9, 2023
1 parent 60eec1e commit ab0a3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/PageLayout/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Button} from '@/components/Clickable/Button'
import {FormInput} from '@/components/FormItems/FormInput/FormInput'
import {AuthContainer} from '@/utils/AuthContainer'

import {ILoginFormWrapper} from '../LoginFormWrapper/LoginFormWrapper'
import {LoginFormWrapperProps} from '../LoginFormWrapper/LoginFormWrapper'

type LoginFormValues = {
email: string
Expand All @@ -19,7 +19,7 @@ const defaultValues: LoginFormValues = {
password: '',
}

export const LoginForm: FC<ILoginFormWrapper> = ({closeOverlay}) => {
export const LoginForm: FC<LoginFormWrapperProps> = ({closeOverlay}) => {
const {login} = AuthContainer.useContainer()
const {handleSubmit, control} = useForm<LoginFormValues>({defaultValues})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {Button} from '@/components/Clickable/Button'
import {LoginForm} from '../LoginForm/LoginForm'
import {PasswordResetRequestForm} from '../PasswordResetRequest/PasswordResetRequest'

export interface ILoginFormWrapper {
export type LoginFormWrapperProps = {
closeOverlay: () => void
}

export const LoginFormWrapper: FC<ILoginFormWrapper> = ({closeOverlay}) => {
export const LoginFormWrapper: FC<LoginFormWrapperProps> = ({closeOverlay}) => {
const router = useRouter()
const [form, changeForm] = useState('login')

Expand Down

0 comments on commit ab0a3ed

Please sign in to comment.