Remove a hilarious number of unused dependencies

This commit is contained in:
Dane Everitt 2020-07-04 19:01:49 -07:00
parent 732594a164
commit 7f5ee04978
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 76 additions and 1676 deletions

View file

@ -17,7 +17,7 @@ interface Values {
recoveryCode: '',
}
type OwnProps = RouteComponentProps<Record<string, unknown>, StaticContext, { token?: string }>
type OwnProps = RouteComponentProps<Record<string, string | undefined>, StaticContext, { token?: string }>
type Props = OwnProps & {
addError: ActionCreator<FlashStore['addError']['payload']>;

View file

@ -56,6 +56,7 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
.min(8, 'Your new password should be at least 8 characters in length.'),
passwordConfirmation: string()
.required('Your new password does not match.')
// @ts-ignore
.oneOf([ ref('password'), null ], 'Your new password does not match.'),
})}
>
@ -66,7 +67,7 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
>
<div>
<label>Email</label>
<Input value={email} light disabled/>
<Input value={email} isLight disabled/>
</div>
<div css={tw`mt-6`}>
<Field