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