1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 03:06:22 +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,10 +1,11 @@
import React, { useEffect } from 'react';
import Pattern from '../constants/Pattern';
import CoverCard from './CoverCard';
import Heading from './Heading';
interface RelatedPatternsProps {
patterns: string[];
patterns: Pattern[];
}
const RelatedPatterns: React.FC<RelatedPatternsProps> = ({ patterns }) => {