File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import styled from "styled-components"
3
- import Emoji from "../components /Emoji"
3
+ import Emoji from "./Emoji"
4
4
5
5
import Checkbox from "./Checkbox"
6
6
@@ -27,8 +27,17 @@ const Description = styled.p`
27
27
const TopContent = styled . div `
28
28
position: relative;
29
29
`
30
+ export interface IProps {
31
+ emoji : string
32
+ title : string
33
+ description : string
34
+ className ?: string
35
+ onSelect : ( val : string ) => void
36
+ value : string
37
+ isSelected : boolean
38
+ }
30
39
31
- const Card = ( {
40
+ const Card : React . FC < IProps > = ( {
32
41
emoji,
33
42
title,
34
43
description,
@@ -43,11 +52,7 @@ const Card = ({
43
52
}
44
53
45
54
return (
46
- < StyledCard
47
- isSelected = { isSelected }
48
- className = { className }
49
- onClick = { handleSelect }
50
- >
55
+ < StyledCard className = { className } onClick = { handleSelect } >
51
56
< TopContent >
52
57
< Emoji text = { emoji } size = { 3 } mb = { `1em` } />
53
58
< StyledCheckbox checked = { isSelected } aria-label = { title } />
You can’t perform that action at this time.
0 commit comments