diff --git a/src/App/styles.ts b/src/App/styles.ts index 17af52b..33325da 100644 --- a/src/App/styles.ts +++ b/src/App/styles.ts @@ -1,15 +1,15 @@ import { css } from 'emotion'; import colors from '../utils/styles/colors'; -export const alertError = css` - background-color: ${colors.red} !important; - min-width: inherit !important; -`; +export const alertError = css({ + backgroundColor: `${colors.red} !important`, + minWidth: 'inherit !important', +}); -export const alertErrorMsg = css` - display: flex; - align-items: center; -`; +export const alertErrorMsg = css({ + display: 'flex', + alignItems: 'center', +}); export const alertIcon = css({ opacity: 0.9, diff --git a/src/components/Developers/styles.ts b/src/components/Developers/styles.ts index bc2645d..cb2b10f 100644 --- a/src/components/Developers/styles.ts +++ b/src/components/Developers/styles.ts @@ -3,11 +3,11 @@ import Typography from '@material-ui/core/Typography'; import { default as MuiFab } from '@material-ui/core/Fab'; import colors from '../../utils/styles/colors'; -export const Details = styled('span')` - display: flex; - flex-direction: column; - align-items: center; -`; +export const Details = styled('span')({ + display: 'flex', + flexDirection: 'column', + alignItems: 'center', +}); export const Content = styled('div')` margin: 10px 0 10px 0; diff --git a/src/components/Login/styles.ts b/src/components/Login/styles.ts index 6029064..ac2facd 100644 --- a/src/components/Login/styles.ts +++ b/src/components/Login/styles.ts @@ -5,16 +5,16 @@ export const loginDialog = css({ minWidth: '300px', }); -export const loginError = css` - background-color: ${colors.red} !important; - min-width: inherit !important; - margin-bottom: 10px !important; -`; +export const loginError = css({ + backgroundColor: `${colors.red} !important`, + minWidth: 'inherit !important', + marginBottom: '10px !important', +}); -export const loginErrorMsg = css` - display: flex; - align-items: center; -`; +export const loginErrorMsg = css({ + display: 'flex', + alignItems: 'center', +}); export const loginIcon = css({ opacity: 0.9, diff --git a/src/components/NotFound/styles.ts b/src/components/NotFound/styles.ts index cc6a640..01f3979 100644 --- a/src/components/NotFound/styles.ts +++ b/src/components/NotFound/styles.ts @@ -3,25 +3,25 @@ import { default as MuiList } from '@material-ui/core/List'; import Typography from '@material-ui/core/Typography'; import styled from 'react-emotion'; -export const Wrapper = styled('div')` - display: flex; - align-items: center; - flex-direction: column; - justify-content: center; - flex: 1; - padding: 16px; -`; +export const Wrapper = styled('div')({ + display: 'flex', + alignItems: 'center', + flexDirection: 'column', + justifyContent: 'center', + flex: 1, + padding: '16px', +}); -export const Inner = styled('div')` - max-width: 650px; - display: flex; - flex-direction: column; -`; +export const Inner = styled('div')({ + maxWidth: '650px', + display: 'flex', + flexDirection: 'column', +}); -export const EmptyPackage = styled('img')` - width: 150px; - margin: 0 auto; -`; +export const EmptyPackage = styled('img')({ + width: '150px', + margin: '0 auto', +}); export const Heading = styled(Typography)` && { @@ -36,6 +36,6 @@ export const List = styled(MuiList)` } `; -export const Card = styled(MuiCard)` - margin-top: 24px; -`; +export const Card = styled(MuiCard)({ + marginTop: '24px', +}); diff --git a/src/components/Package/styles.ts b/src/components/Package/styles.ts index 2a4f1d5..2a51779 100644 --- a/src/components/Package/styles.ts +++ b/src/components/Package/styles.ts @@ -155,8 +155,8 @@ export const PackageListItemText = styled(ListItemText)` } `; -export const Description = styled(Typography)` - color: ${colors.greyDark2}; - font-size: 14px; - padding-right: 0; -`; +export const Description = styled(Typography)({ + color: colors.greyDark2, + fontSize: '14px', + paddingRight: 0, +}); diff --git a/src/components/UpLinks/styles.ts b/src/components/UpLinks/styles.ts index b530768..e6b005a 100644 --- a/src/components/UpLinks/styles.ts +++ b/src/components/UpLinks/styles.ts @@ -8,12 +8,12 @@ export const Heading = styled(Typography)` } `; -export const Spacer = styled('div')` - flex: 1 1 auto; - border-bottom: 1px dotted rgba(0, 0, 0, 0.2); - white-space: nowrap; - height: 0.5em; -`; +export const Spacer = styled('div')({ + flex: '1 1 auto', + borderBottom: '1px dotted rgba(0, 0, 0, 0.2)', + whiteSpace: 'nowrap', + height: '0.5em', +}); export const ListItemText = styled(MuiListItemText)` && { diff --git a/src/components/Versions/styles.ts b/src/components/Versions/styles.ts index b530768..e6b005a 100644 --- a/src/components/Versions/styles.ts +++ b/src/components/Versions/styles.ts @@ -8,12 +8,12 @@ export const Heading = styled(Typography)` } `; -export const Spacer = styled('div')` - flex: 1 1 auto; - border-bottom: 1px dotted rgba(0, 0, 0, 0.2); - white-space: nowrap; - height: 0.5em; -`; +export const Spacer = styled('div')({ + flex: '1 1 auto', + borderBottom: '1px dotted rgba(0, 0, 0, 0.2)', + whiteSpace: 'nowrap', + height: '0.5em', +}); export const ListItemText = styled(MuiListItemText)` && {