diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-04 17:23:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-04 17:23:52 -0700 |
commit | df3254688a643cd96280beb62d4f158f1f4d0dd7 (patch) | |
tree | 29d95bbcbdf67cd5428b4f20344aa11d8b5fd5c7 /modern/src/common | |
parent | e1d618e524680ed5702d6d43bf808b4c665fa157 (diff) | |
download | trackermap-web-df3254688a643cd96280beb62d4f158f1f4d0dd7.tar.gz trackermap-web-df3254688a643cd96280beb62d4f158f1f4d0dd7.tar.bz2 trackermap-web-df3254688a643cd96280beb62d4f158f1f4d0dd7.zip |
Finish password reset
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/useQuery.js | 5 |
1 files changed, 5 insertions, 0 deletions
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); +} |