Skip to content

Commit

Permalink
Merge pull request #115 from HarrisSte/HideAPIKey
Browse files Browse the repository at this point in the history
Hide api key
  • Loading branch information
caitlinramsey committed Sep 9, 2023
2 parents a16be92 + fa6682a commit ac1805e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { useCookies } from 'react-cookie';
import Header from './components/Header/NavLinks';
import Footer from './components/Footer/Footer';



function App() {
const [cookies] = useCookies(['auth_token']);

Expand Down
5 changes: 5 additions & 0 deletions client/src/components/SelectedGenreGames.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { useEffect, useState } from "react";
// import.meta.env.VITE_API_KEY;

// console.log(import.meta.env.VITE_API_KEY);

const SelectedGenreGames = ({ genreId }) => {
// const apiKey = import.meta.env.VITE_API_KEY;
const [genreGames, setGenreGames] = useState([]);
useEffect(() => {
fetch(
Expand Down
2 changes: 0 additions & 2 deletions client/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Login from './pages/Login/Login';
import Register from './pages/Register/Register';
import SingleGame from './pages/SingleGame';
import Results from './pages/Results/ResultsPage';
// import SelectedGenreGames from './components/SelectedGenreGames';

import ProtectedRoute from './components/ProtectedRoute';

Expand All @@ -33,7 +32,6 @@ const router = createBrowserRouter(
<Route path='register' element={<Register />} />
<Route path='/results' element={<Results />} />
<Route path='/game/:gameId' element={<SingleGame />} />
{/* <Route path='/genre/:genreId' element={<SelectedGenreGames />} /> */}

<Route
path='profile'
Expand Down

0 comments on commit ac1805e

Please sign in to comment.