Remove unused deps

This commit is contained in:
DaneEveritt 2022-06-26 16:14:32 -04:00
parent d172d2829f
commit c166f1305b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 8 additions and 215 deletions

View file

@ -1,6 +1,5 @@
import React, { useState } from 'react';
import { RouteComponentProps } from 'react-router';
import { parse } from 'query-string';
import { Link } from 'react-router-dom';
import performPasswordReset from '@/api/auth/performPasswordReset';
import { httpErrorToHuman } from '@/api/http';
@ -24,9 +23,9 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
const { clearFlashes, addFlash } = useStoreActions((actions: Actions<ApplicationStore>) => actions.flashes);
const parsed = parse(location.search);
if (email.length === 0 && parsed.email) {
setEmail(parsed.email as string);
const parsed = new URLSearchParams(location.search);
if (email.length === 0 && parsed.get('email')) {
setEmail(parsed.get('email') || '');
}
const submit = ({ password, passwordConfirmation }: Values, { setSubmitting }: FormikHelpers<Values>) => {