Skip to content

Commit 3468ad5

Browse files
refactor(tutorial-tags): migrate to Chakra
1 parent 1bcf3aa commit 3468ad5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/components/TutorialTags.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32

43
import Pill from "./Pill"
54

@@ -27,12 +26,6 @@ const colors = [
2726
"tagPink",
2827
] as const
2928

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-
3629
export interface IProps {
3730
tags: Array<string>
3831
}
@@ -44,9 +37,9 @@ const TutorialTags: React.FC<IProps> = ({ tags }) => {
4437
const tagColorIdx = hashCode(tag) % colors.length
4538
const tagColor = colors[tagColorIdx]
4639
return (
47-
<TagPill key={idx} color={tagColor}>
40+
<Pill key={idx} me={2} mb={2} background={tagColor}>
4841
{tag}
49-
</TagPill>
42+
</Pill>
5043
)
5144
})}
5245
</>

0 commit comments

Comments
 (0)