Remove a hilarious number of unused dependencies

This commit is contained in:
Dane Everitt 2020-07-04 19:01:49 -07:00
parent 732594a164
commit 7f5ee04978
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 76 additions and 1676 deletions

View file

@ -2,9 +2,9 @@ import React from 'react';
import PageContentBlock from '@/components/elements/PageContentBlock';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faArrowLeft, faSyncAlt } from '@fortawesome/free-solid-svg-icons';
import classNames from 'classnames';
import styled, { keyframes } from 'styled-components/macro';
import tw from 'twin.macro';
import Button from '@/components/elements/Button';
interface BaseProps {
title: string;
@ -30,7 +30,7 @@ const spin = keyframes`
to { transform: rotate(360deg) }
`;
const ActionButton = styled.button`
const ActionButton = styled(Button)`
${tw`rounded-full w-8 h-8 flex items-center justify-center`};
&.hover\\:spin:hover {
@ -46,7 +46,7 @@ export default ({ title, image, message, onBack, onRetry }: Props) => (
<div css={tw`absolute left-0 top-0 ml-4 mt-4`}>
<ActionButton
onClick={() => onRetry ? onRetry() : (onBack ? onBack() : null)}
className={classNames('btn btn-primary', { 'hover:spin': !!onRetry })}
className={onRetry ? 'hover:spin' : undefined}
>
<FontAwesomeIcon icon={onRetry ? faSyncAlt : faArrowLeft}/>
</ActionButton>