From 4c85438bab04c1165d07c2d80aca34b3423967e7 Mon Sep 17 00:00:00 2001 From: amalv <1252707+amalv@users.noreply.github.com> Date: Tue, 26 Dec 2023 12:14:51 +0100 Subject: [PATCH] feat: add Auth0 configuration and remove obsolete code --- .github/workflows/deploy.yml | 2 ++ src/components/BookList/BookList.tsx | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f4a5981..38dd893 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,6 +41,8 @@ jobs: run: npm run build env: VITE_API_URL_PRODUCTION: ${{ secrets.VITE_API_URL_PRODUCTION }} + VITE_AUTH0_DOMAIN: ${{ secrets.VITE_AUTH0_DOMAIN }} + VITE_AUTH0_CLIENT_ID: ${{ secrets.VITE_AUTH0_CLIENT_ID }} - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact diff --git a/src/components/BookList/BookList.tsx b/src/components/BookList/BookList.tsx index f8a7d42..8230342 100644 --- a/src/components/BookList/BookList.tsx +++ b/src/components/BookList/BookList.tsx @@ -44,7 +44,6 @@ export const BookList = () => { const [search, setSearch] = useState(""); const [debouncedSearch, setDebouncedSearch] = useState(""); const { user } = useAuth0(); - const showLogin = import.meta.env.VITE_SHOW_LOGIN === "true"; useEffect(() => { if (user) { @@ -67,11 +66,9 @@ export const BookList = () => { - {showLogin && ( - - - - )} + + +