summaryrefslogtreecommitdiff
path: root/web/src/hooks/RedirectionURL.ts
diff options
context:
space:
mode:
authorAmir Zarrinkafsh <nightah@me.com>2021-01-02 21:58:24 +1100
committerGitHub <noreply@github.com>2021-01-02 21:58:24 +1100
commit689fd7cb954afd5eaeab49e122cdd2ee86bc6c82 (patch)
tree39ecf8710d9758edc2eb87882cadabe870ab9d1e /web/src/hooks/RedirectionURL.ts
parenta5ea31e482df16acda15b77b3a7db24a2a5b7be7 (diff)
[CI] Add linting option for frontend and enforce styling (#1565)
We now extend the default Eslint configuration and enforce styling with prettier for all of our frontend code.
Diffstat (limited to 'web/src/hooks/RedirectionURL.ts')
-rw-r--r--web/src/hooks/RedirectionURL.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/src/hooks/RedirectionURL.ts b/web/src/hooks/RedirectionURL.ts
index 670be718a..311cc27ba 100644
--- a/web/src/hooks/RedirectionURL.ts
+++ b/web/src/hooks/RedirectionURL.ts
@@ -4,7 +4,5 @@ import { useLocation } from "react-router";
export function useRedirectionURL() {
const location = useLocation();
const queryParams = queryString.parse(location.search);
- return (queryParams && "rd" in queryParams)
- ? queryParams["rd"] as string
- : undefined;
-} \ No newline at end of file
+ return queryParams && "rd" in queryParams ? (queryParams["rd"] as string) : undefined;
+}