1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-09 07:36:30 +02:00

Define typescript type for placeholders

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:18:12 +07:00
parent 642e179699
commit 154a61de91
11 changed files with 50 additions and 14 deletions

View File

@@ -4,7 +4,11 @@ import { Link } from 'react-router-dom';
import CoverLoader from '../loaders/CoverLoader';
import slug from '../helpers/slug';
const CoverCard = ({ pattern }) => {
interface CoverCardProps {
pattern: string;
}
const CoverCard: React.FC<CoverCardProps> = ({ pattern }) => {
return (
<div className="pa1 w-20">
<Link