Skip to content

Instantly share code, notes, and snippets.

View benthehenten's full-sized avatar
🚀
Building LogRocket

Ben Edelstein benthehenten

🚀
Building LogRocket
View GitHub Profile
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;
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,
class DataView extends Component {
state = {
data: null,
}
async componentDidMount() {
this.fetchData()
}
fetchData = async () => {
// colors
const YELLOW = '#FFF83C';
// fonts
const BOLD = 700;
const TIMES_NEW_ROMAN = '"Times New Roman", Georgia, Serif';
// shared constants
const border = `1px solid ${YELLOW}`;