1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-18 03:41:35 +02:00

Create TS type for pattern

This commit is contained in:
Phuoc Nguyen
2019-11-25 08:40:32 +07:00
parent 60612ba11c
commit 0b42feb697
7 changed files with 88 additions and 41 deletions

View File

@@ -1,7 +1,9 @@
import loadable, { LoadableComponent } from '@loadable/component';
import Pattern from '../constants/Pattern';
interface CoverLoaderProps {
pattern: string;
pattern: Pattern;
}
const slug = (item: string) => item.toLowerCase().split(' ').join('-');