File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ export const StyledTagWrapper = styled.div.withConfig({
1111 margin: 0.25rem;
1212` ;
1313export const StyledTagText = styled . p < { color : string } > `
14- padding: 0.25rem 0.5rem;
14+ padding: 0.25rem 0.5rem 0;
15+ margin-bottom: 0.3rem;
1516 color: ${ ( { color } ) => {
1617 return color ;
1718 } } ;
Original file line number Diff line number Diff line change 11import { FC } from "react" ;
2- import { Color } from "../../ styles/colors" ;
2+ import { Color } from "@ styles/colors" ;
33import { StyledTagText , StyledTagWrapper } from "./Style.Tag" ;
44
55type TagProps = {
@@ -65,7 +65,10 @@ export const colorTagByText = (text: string): string => {
6565 return "#000000" ;
6666} ;
6767
68- export const Tag : FC < React . PropsWithChildren < TagProps > > = ( { text, textColor } ) => {
68+ export const Tag : FC < React . PropsWithChildren < TagProps > > = ( {
69+ text,
70+ textColor,
71+ } ) => {
6972 const color = colorTagByText ( text ) ;
7073 return (
7174 < StyledTagWrapper borderColor = { color } >
You can’t perform that action at this time.
0 commit comments