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
/** | |
* Error Boundary | |
* | |
* - used by top level App | |
* - catch JS errors and display | |
*/ | |
import React, { Component } from "react"; | |
interface PropsInterface {} |
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 { Toolbar, Button } from "@material-ui/core"; | |
import SaveIcon from "@material-ui/icons/Save"; | |
import CancelIcon from "@material-ui/icons/Cancel"; | |
const FloatingSaveButtons = ({ dirty, isValid, onCancel }) => { | |
if (!dirty) return null; | |
return ( | |
<Toolbar | |
variant="dense" |
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 SpeedDial from "@material-ui/lab/SpeedDial"; | |
import SpeedDialIcon from "@material-ui/lab/SpeedDialIcon"; | |
import SpeedDialAction from "@material-ui/lab/SpeedDialAction"; | |
import { useState } from "react"; | |
const FloatingSpeeddial = ({ actions }) => { | |
const [speeddialOpen, setSpeeddialOpen] = useState(false); | |
const handleCloseSpeeddial = () => { | |
setSpeeddialOpen(false); |