Skip to content

Commit e27490b

Browse files
committed
refactor(Tag): update styles and imports with absolute paths
1 parent 0bd7af6 commit e27490b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/Tag/Style.Tag.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const StyledTagWrapper = styled.div.withConfig({
1111
margin: 0.25rem;
1212
`;
1313
export 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
}};

src/components/Tag/Tag.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FC } from "react";
2-
import { Color } from "../../styles/colors";
2+
import { Color } from "@styles/colors";
33
import { StyledTagText, StyledTagWrapper } from "./Style.Tag";
44

55
type 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}>

0 commit comments

Comments
 (0)