Skip to content

Commit

Permalink
forget to hide api key!! 😳 do as u never see this commit :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuSquall committed Feb 18, 2022
1 parent 04b4c0e commit 526e565
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ yarn-error.log*

#vscode settings folder
.vscode

# api keys
.env
2 changes: 1 addition & 1 deletion src/components/app/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function App(){


const apiUrl = 'https://pixabay.com/api';
const apiKey = '14103325-b948c3fc34be7c939206bed1b';
const apiKey = process.env.REACT_APP_PIXABAY_API_KEY;
const amount = 4;
const [images, setImages] = React.useState([]);

Expand Down

0 comments on commit 526e565

Please sign in to comment.