This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
import { headers } from "."; | |
export const API_NAME = { | |
API_FUNCTION_NAME: async(params) => { | |
try { | |
const results = await axios.get("/url",{headers,params}); | |
return results.data; | |
} catch (error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import Drawer from '@material-ui/core/Drawer'; | |
import AppBar from '@material-ui/core/AppBar'; | |
import CssBaseline from '@material-ui/core/CssBaseline'; | |
import Toolbar from '@material-ui/core/Toolbar'; | |
import List from '@material-ui/core/List'; | |
import Typography from '@material-ui/core/Typography'; | |
import ListItem from '@material-ui/core/ListItem'; | |
import ListItemIcon from '@material-ui/core/ListItemIcon'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from 'firebase/app' | |
//copy the config from your app | |
const firebaseConfig = { | |
apiKey: "API_KEY", | |
authDomain: "PROJECT_ID.firebaseapp.com", | |
databaseURL: "https://PROJECT_ID.firebaseio.com", | |
projectId: "PROJECT_ID", | |
storageBucket: "PROJECT_ID.appspot.com", |