1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00

Add typescript types for patterns

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:36:43 +07:00
parent 154a61de91
commit 6d3d9da384
88 changed files with 146 additions and 93 deletions

View File

@@ -3,7 +3,11 @@ import React, { useEffect } from 'react';
import CoverCard from './CoverCard';
import Heading from './Heading';
const RelatedPatterns = ({ patterns }) => {
interface RelatedPatternsProps {
patterns: string[];
}
const RelatedPatterns: React.FC<RelatedPatternsProps> = ({ patterns }) => {
return (
<section>
<Heading title="Related patterns" />