Skip to content

Commit

Permalink
cognito example react app trying to declare a type for useLocation.state
Browse files Browse the repository at this point in the history
  • Loading branch information
AMZ-brandon committed Mar 19, 2024
1 parent 6ac4889 commit 4c3858e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { confirmSignUp } from './authService';

const ConfirmUserPage = () => {
const navigate = useNavigate();
const location = useLocation();
const location: Location<{ email: string }> = useLocation();
const [email, setEmail] = useState(location.state?.email || '');
const [confirmationCode, setConfirmationCode] = useState('');

Expand Down

0 comments on commit 4c3858e

Please sign in to comment.