Get compilation back to working

This commit is contained in:
Dane Everitt 2020-07-03 14:19:05 -07:00
parent 2193916fe4
commit 94e3acb9c4
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
21 changed files with 97 additions and 97 deletions

View file

@ -4,7 +4,8 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faArrowLeft } from '@fortawesome/free-solid-svg-icons/faArrowLeft';
import { faSyncAlt } from '@fortawesome/free-solid-svg-icons/faSyncAlt';
import classNames from 'classnames';
import styled from 'styled-components';
import styled from 'styled-components/macro';
import tw from 'twin.macro';
interface BaseProps {
title: string;
@ -42,10 +43,10 @@ const ActionButton = styled.button`
export default ({ title, image, message, onBack, onRetry }: Props) => (
<PageContentBlock>
<div className={'flex justify-center'}>
<div className={'w-full sm:w-3/4 md:w-1/2 p-12 md:p-20 bg-neutral-100 rounded-lg shadow-lg text-center relative'}>
<div css={tw`flex justify-center`}>
<div css={tw`w-full sm:w-3/4 md:w-1/2 p-12 md:p-20 bg-neutral-100 rounded-lg shadow-lg text-center relative`}>
{(typeof onBack === 'function' || typeof onRetry === 'function') &&
<div className={'absolute pin-l pin-t ml-4 mt-4'}>
<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 })}
@ -54,9 +55,9 @@ export default ({ title, image, message, onBack, onRetry }: Props) => (
</ActionButton>
</div>
}
<img src={image} className={'w-2/3 h-auto select-none'}/>
<h2 className={'mt-6 text-neutral-900 font-bold'}>{title}</h2>
<p className={'text-sm text-neutral-700 mt-2'}>
<img src={image} css={tw`w-2/3 h-auto select-none`}/>
<h2 css={tw`mt-6 text-neutral-900 font-bold`}>{title}</h2>
<p css={tw`text-sm text-neutral-700 mt-2`}>
{message}
</p>
</div>

View file

@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';
import ScreenBlock from '@/components/screens/ScreenBlock';
interface Props {