mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
524936912d
* feat: add new user page * feat: passwordchecker * fix: remove loading * feat: reset password * fix: move swr to devDeps * feat: generate reset link * feat: add reset password form * fix: remove console log * fix: rename to forgotten password * feat: add simple menu * fix: change password checker title * fix: change text in new-user view * fix: lint errors * fix: add status code to constants * fix: comment * fix: add classes for new user component * fix: tests * fix: remove console log * fix: remove retry method * fix: invalid token constant * fix: remove console log * fix: dependency array on useCallback * fix: featureview * fix: redirect on authenticated * refactor: progresswheel * fix: lint deps
8 lines
165 B
TypeScript
8 lines
165 B
TypeScript
import { useLocation } from 'react-router';
|
|
|
|
const useQueryParams = () => {
|
|
return new URLSearchParams(useLocation().search);
|
|
};
|
|
|
|
export default useQueryParams;
|