chore: swap loading component for react-spinner

This commit is contained in:
Kyle Gill
2019-03-29 09:38:21 -06:00
parent 8b83dd8c6d
commit faf5473d5d
6 changed files with 40 additions and 13 deletions

View File

@@ -1,16 +1,17 @@
import React from "react";
import styled from "@emotion/styled";
import React from "react"
import styled from "@emotion/styled"
import {
Book,
Calendar,
ChevronLeft,
ChevronRight,
Circle,
Edit2,
Moon,
Sun,
User
} from "react-feather";
import { withTheme } from "emotion-theming";
User,
} from "react-feather"
import { withTheme } from "emotion-theming"
const IconBase = styled.div`
display: flex;
@@ -25,7 +26,7 @@ const IconBase = styled.div`
background-color: ${props => !props.disabled && props.theme.colors.hover};
cursor: pointer;
}
`;
`
const Icon = ({ name, ...rest }) => (
<IconBase {...rest}>
@@ -38,6 +39,6 @@ const Icon = ({ name, ...rest }) => (
{name === "Sun" && <Sun />}
{name === "User" && <User />}
</IconBase>
);
)
export default withTheme(Icon);
export default withTheme(Icon)