1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-26 15:24:58 +02:00

Fix tslint

This commit is contained in:
Phuoc Nguyen
2019-11-25 01:00:48 +07:00
parent efc9046824
commit 5fd9ff5ddf
58 changed files with 353 additions and 168 deletions

View File

@@ -4,9 +4,8 @@ interface CoverLoaderProps {
pattern: string;
}
//import slug from './helpers/slug';
const slug = (item: string) => item.toLowerCase().split(' ').join('-');
const CoverLoader: LoadableComponent<CoverLoaderProps> = loadable(props => import(`../patterns/${slug(props.pattern)}/Cover`));
const CoverLoader: LoadableComponent<CoverLoaderProps> = loadable((props: CoverLoaderProps) => import(`../patterns/${slug(props.pattern)}/Cover`));
export default CoverLoader;