Skip to content

Commit

Permalink
API key hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Yog9 committed Jun 21, 2020
1 parent af07621 commit 70888f9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# production
/build

/src/api/config.js
# misc
.DS_Store
.env.local
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The purpose of this project was to get familiar with React Hooks and Context API
### Getting Started

Click the demo link or clone/download the repository on your local machine.
Create a config.js file in components folder. In config.js file write
Create a config.js file in api folder inside src folders. In config.js file write
`export const apiKey = "YOUR_FLIKR_API_KEY";`

##### Install dependencies
Expand Down
1 change: 0 additions & 1 deletion src/components/config.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/context/PhotoContext.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { createContext, useState } from "react";
import axios from "axios";
import { apiKey } from "../components/config";
import { apiKey } from "../api/config";
export const PhotoContext = createContext();

const PhotoContextProvider = props => {
Expand Down

0 comments on commit 70888f9

Please sign in to comment.