This file contains 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 { API } from "../actions/types"; | |
import { accessDenied, apiError, apiStart, apiEnd } from "../actions/api"; | |
const apiMiddleware = ({ dispatch }) => next => action => { | |
next(action); | |
if (action.type !== API) return; |
This file contains 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, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import PropTypes from 'prop-types'; | |
import Airtable from 'airtable'; | |
import { StyleSheet, css } from 'aphrodite'; | |
import { | |
Button, | |
FormControl, | |
FormGroup, |
This file contains 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
class DataView extends Component { | |
state = { | |
data: null, | |
} | |
async componentDidMount() { | |
this.fetchData() | |
} | |
fetchData = async () => { |
This file contains 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
// colors | |
const YELLOW = '#FFF83C'; | |
// fonts | |
const BOLD = 700; | |
const TIMES_NEW_ROMAN = '"Times New Roman", Georgia, Serif'; | |
// shared constants | |
const border = `1px solid ${YELLOW}`; |