Skip to content

Commit c166f13

Browse files
committed
Remove unused deps
1 parent d172d28 commit c166f13

File tree

3 files changed

+8
-215
lines changed

3 files changed

+8
-215
lines changed

package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@
2626
"i18next-http-backend": "^1.4.1",
2727
"i18next-multiload-backend-adapter": "^1.0.0",
2828
"qrcode.react": "^1.0.1",
29-
"query-string": "^6.7.0",
3029
"react": "^16.14.0",
3130
"react-chartjs-2": "^4.2.0",
3231
"react-copy-to-clipboard": "^5.0.2",
3332
"react-dom": "npm:@hot-loader/react-dom",
3433
"react-fast-compare": "^3.2.0",
35-
"react-google-recaptcha": "^2.0.1",
3634
"react-hot-loader": "^4.12.21",
3735
"react-i18next": "^11.2.1",
3836
"react-router-dom": "^5.1.2",
@@ -71,18 +69,15 @@
7169
"@testing-library/jest-dom": "^5.16.4",
7270
"@testing-library/react": "12.1.5",
7371
"@testing-library/user-event": "^14.2.1",
74-
"@types/chart.js": "^2.8.5",
7572
"@types/codemirror": "^0.0.98",
7673
"@types/debounce": "^1.2.0",
7774
"@types/events": "^3.0.0",
7875
"@types/jest": "^28.1.3",
7976
"@types/node": "^14.11.10",
8077
"@types/qrcode.react": "^1.0.1",
81-
"@types/query-string": "^6.3.0",
8278
"@types/react": "^16.14.0",
8379
"@types/react-copy-to-clipboard": "^4.3.0",
8480
"@types/react-dom": "^16.9.16",
85-
"@types/react-helmet": "^6.0.0",
8681
"@types/react-redux": "^7.1.1",
8782
"@types/react-router": "^5.1.3",
8883
"@types/react-router-dom": "^5.1.3",
@@ -101,13 +96,9 @@
10196
"css-loader": "^5.2.7",
10297
"eslint": "^8.18.0",
10398
"eslint-config-prettier": "^8.5.0",
104-
"eslint-config-standard": "^17.0.0",
105-
"eslint-plugin-import": "^2.26.0",
10699
"eslint-plugin-jest-dom": "^4.0.2",
107-
"eslint-plugin-n": "^15.2.3",
108100
"eslint-plugin-node": "^11.1.0",
109101
"eslint-plugin-prettier": "^4.0.0",
110-
"eslint-plugin-promise": "^6.0.0",
111102
"eslint-plugin-react": "^7.30.1",
112103
"eslint-plugin-react-hooks": "^4.6.0",
113104
"fork-ts-checker-webpack-plugin": "^6.2.10",

resources/scripts/components/auth/ResetPasswordContainer.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState } from 'react';
22
import { RouteComponentProps } from 'react-router';
3-
import { parse } from 'query-string';
43
import { Link } from 'react-router-dom';
54
import performPasswordReset from '@/api/auth/performPasswordReset';
65
import { httpErrorToHuman } from '@/api/http';
@@ -24,9 +23,9 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
2423

2524
const { clearFlashes, addFlash } = useStoreActions((actions: Actions<ApplicationStore>) => actions.flashes);
2625

27-
const parsed = parse(location.search);
28-
if (email.length === 0 && parsed.email) {
29-
setEmail(parsed.email as string);
26+
const parsed = new URLSearchParams(location.search);
27+
if (email.length === 0 && parsed.get('email')) {
28+
setEmail(parsed.get('email') || '');
3029
}
3130

3231
const submit = ({ password, passwordConfirmation }: Values, { setSubmitting }: FormikHelpers<Values>) => {

0 commit comments

Comments
 (0)