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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user