@@ -113,7 +113,7 @@ const Home = (props) => {
{
skill.skills_array.map((_skill, index) => {
return (
-
+
{_skill.skill_name}
)
})
}
diff --git a/src/containers/Home/styles.js b/src/containers/Home/styles.js
index 170aa4d..cd2d45b 100644
--- a/src/containers/Home/styles.js
+++ b/src/containers/Home/styles.js
@@ -36,6 +36,15 @@ const homeStyles = makeStyles(theme => ({
},
marginTop: 15,
marginBottom: 20
+ },
+ skillsPill: {
+ backgroundColor: 'red',
+ borderRadius: 10,
+ paddingRight: theme.spacing(2),
+ paddingLeft: theme.spacing(2),
+ paddingTop: 2,
+ paddingBottom: 2,
+ textAlign: 'center',
}
}));
diff --git a/src/context/RootContext.js b/src/context/RootContext.js
index e500be1..794d271 100644
--- a/src/context/RootContext.js
+++ b/src/context/RootContext.js
@@ -6,10 +6,16 @@ export const RootContextProvider = props => {
const [rootStore, setRootStore] = useState({ drawerOpen: false, theme: "dark" });
useEffect(() => {
- async function fetchIpInfo () {
- const ipInfo = await fetch("https://ipapi.co/json/");
- let ipInfoResponseJson = await ipInfo.json();
- setRootStore({ ...rootStore, ipInfo: ipInfoResponseJson });
+ function fetchIpInfo () {
+ fetch("https://ipapi.co/json/").then(response => {
+ if (response.ok) {
+ let ipInfoResponseJson = response.json();
+ setRootStore({ ...rootStore, ipInfo: ipInfoResponseJson });
+ }
+ }).catch(error => {
+ console.log(error);
+ setRootStore({ ...rootStore, ipInfo: {} });
+ })
}
fetchIpInfo();
diff --git a/src/utils/FirebaseConfig.js b/src/utils/FirebaseConfig.js
index a95da90..5766dca 100644
--- a/src/utils/FirebaseConfig.js
+++ b/src/utils/FirebaseConfig.js
@@ -1,14 +1,14 @@
import firebase from "firebase";
const firebaseConfig = firebase.initializeApp({
- apiKey : "AIzaSyBNW35sc1XW4jz8km47M9R4n9hScEO-kvo",
- authDomain : "narottam-portfolio.firebaseapp.com",
- databaseURL : "https://narottam-portfolio.firebaseio.com",
- projectId : "narottam-portfolio",
- storageBucket : "narottam-portfolio.appspot.com",
- messagingSenderId: "387012073941",
- appId : "1:387012073941:web:a125957edf7307c366855c",
- measurementId : "G-V3E6ZHHZVF",
+ databaseURL : "https://portfolio.firebaseio.com",
+ apiKey: "AIzaSyC3T0ZI9CDOi7GSnMW0vXkbwNlHkNFD4pQ",
+ authDomain: "portfolio-d5658.firebaseapp.com",
+ projectId: "portfolio-d5658",
+ storageBucket: "portfolio-d5658.appspot.com",
+ messagingSenderId: "166302306604",
+ appId: "1:166302306604:web:f10ff8ac69ab6c226e1c89",
+ measurementId: "G-HKCF6Q51Q5"
});
const firestoreDB = firebaseConfig.firestore();