admin(ui): add ability to delete locations

This commit is contained in:
Matthew Penner 2021-01-09 10:32:34 -07:00
parent a91cb578d7
commit 9ec6068f45
3 changed files with 78 additions and 5 deletions

View file

@ -14,6 +14,7 @@ interface Props {
export default ({ databaseId, onDeleted }: Props) => {
const [ visible, setVisible ] = useState(false);
const [ loading, setLoading ] = useState(false);
const { clearFlashes, clearAndAddHttpError } = useStoreActions((actions: Actions<ApplicationStore>) => actions.flashes);
const onDelete = () => {