Skip to content

Commit

Permalink
Fix typescript strict mode warning (implicit type any) on reset passw…
Browse files Browse the repository at this point in the history
…ord page

Adds to / completes #5491
  • Loading branch information
Philzen committed Aug 9, 2022
1 parent c56c7ca commit b0ffe26
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import { useEffect, useRef, useState } from 'react'

import { useAuth } from '@redwoodjs/auth'
import { navigate, routes } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { toast, Toaster } from '@redwoodjs/web/toast'
import {
Form,
Label,
PasswordField,
Submit,
FieldError,
} from '@redwoodjs/forms'
import { navigate, routes } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { toast, Toaster } from '@redwoodjs/web/toast'

const ResetPasswordPage = ({ resetToken }: { resetToken: string }) => {
const { isAuthenticated, reauthenticate, validateResetToken, resetPassword } =
useAuth()

const ResetPasswordPage = ({ resetToken }) => {
const { isAuthenticated, reauthenticate, validateResetToken, resetPassword } = useAuth()
const [enabled, setEnabled] = useState(true)

useEffect(() => {
Expand Down

0 comments on commit b0ffe26

Please sign in to comment.