From df3254688a643cd96280beb62d4f158f1f4d0dd7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 4 Sep 2021 17:23:52 -0700 Subject: Finish password reset --- modern/src/common/useQuery.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 modern/src/common/useQuery.js (limited to 'modern/src/common') diff --git a/modern/src/common/useQuery.js b/modern/src/common/useQuery.js new file mode 100644 index 00000000..6c8ac657 --- /dev/null +++ b/modern/src/common/useQuery.js @@ -0,0 +1,5 @@ +import { useLocation } from "react-router-dom"; + +export default () => { + return new URLSearchParams(useLocation().search); +} -- cgit v1.2.3