File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import styled from "@emotion/styled"
3
2
4
3
import Pill from "./Pill"
5
4
@@ -27,12 +26,6 @@ const colors = [
27
26
"tagPink" ,
28
27
] as const
29
28
30
- const TagPill = styled ( Pill ) `
31
- margin-right: 0.5rem;
32
- margin-bottom: 0.5rem;
33
- background-color: ${ ( props ) => props . theme . colors [ props . color ! ] } ;
34
- `
35
-
36
29
export interface IProps {
37
30
tags : Array < string >
38
31
}
@@ -44,9 +37,9 @@ const TutorialTags: React.FC<IProps> = ({ tags }) => {
44
37
const tagColorIdx = hashCode ( tag ) % colors . length
45
38
const tagColor = colors [ tagColorIdx ]
46
39
return (
47
- < TagPill key = { idx } color = { tagColor } >
40
+ < Pill key = { idx } me = { 2 } mb = { 2 } background = { tagColor } >
48
41
{ tag }
49
- </ TagPill >
42
+ </ Pill >
50
43
)
51
44
} ) }
52
45
</ >
You can’t perform that action at this time.
0 commit comments