From 7f0d5746718ab677cc245312c4bacfae1f4e7083 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 6 Mar 2022 20:05:46 +0100 Subject: [PATCH] Removing usless reddit file --- .../components/Authorizations/RedditAuth.tsx | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 web-app/src/components/Authorizations/RedditAuth.tsx diff --git a/web-app/src/components/Authorizations/RedditAuth.tsx b/web-app/src/components/Authorizations/RedditAuth.tsx deleted file mode 100644 index 4f48b3b..0000000 --- a/web-app/src/components/Authorizations/RedditAuth.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { getCookie, sendServiceAuthToken } from "../../utils/utils"; -import { useNavigate, useSearchParams } from "react-router-dom"; -import { useEffect } from "react"; -import { API_ROUTE } from "../../utils/globals"; - -export default function RedditAuth() { - const [searchParams, setSearchParams] = useSearchParams(); - const navigate = useNavigate(); - - const authToken = searchParams.get("code") as string; - - useEffect(() => { - sendServiceAuthToken(authToken, "/auth/reddit", `${window.location.origin}/authorization/reddit`).then((ok) => { - navigate('/pipelines'); - }); - }, []); - - return
; -}