1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-05 06:04:28 +07:00

refactor: remove scss from PackageList component

This commit is contained in:
Griffithtp 2019-07-05 22:06:33 +01:00
parent 0c4ebbffa8
commit a49780f5f0
3 changed files with 18 additions and 14 deletions

View File

@ -7,8 +7,7 @@ import Help from '../Help';
import { formatLicense } from '../../utils/package';
import { PackageInterface } from '../Package/Package';
// @ts-ignore
import classes from './packageList.scss';
import * as classes from './styles';
interface Props {
packages: PackageInterface[];

View File

@ -1,12 +0,0 @@
@import '../../styles/mixins';
.pkgContainer {
margin: 0;
padding: 0;
.listTitle {
font-weight: $font-weight-regular;
font-size: $font-size-xl;
margin: 0 0 10px 0;
}
}

View File

@ -0,0 +1,17 @@
import { css } from 'emotion';
import { fontWeight, fontSize } from '../../utils/styles/sizes';
export const listTitle = css({
fontWeight: fontWeight.regular,
fontSize: fontSize.xl,
margin: `0 0 10px 0`,
});
export const pkgContainer = css`
margin: 0;
padding: 0;
& .listTitle {
${listTitle}
}
`;