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 && ( - - - - )} + + +