Skip to content

Commit

Permalink
refactor: RoundTag to StyledTag, as the border-radius is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
vincit-matu committed Sep 5, 2024
1 parent 59b014d commit 414c5e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Address,
Name,
Parent,
RoundTag,
StyledTag,
Title,
UnitInfo,
} from "./modules/newSpaceModal";
Expand Down Expand Up @@ -41,7 +41,7 @@ export function Page1({
<>
<CustomDialogHeader
id="dialog-title"
extras={<RoundTag>{t("SpaceModal.phase")} 1/2</RoundTag>}
extras={<StyledTag>{t("SpaceModal.phase")} 1/2</StyledTag>}
title={t(
hasFixedParent
? "SpaceModal.page1.subSpaceModalTitle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Address,
Name,
Parent,
RoundTag,
StyledTag,
UnitInfo,
} from "./modules/newSpaceModal";
import { parseAddress } from "@/common/util";
Expand Down Expand Up @@ -49,7 +49,7 @@ export function Page2({
? "SpaceModal.page2.subSpaceModalTitle"
: "SpaceModal.page2.modalTitle"
)}
extras={<RoundTag>{t("SpaceModal.phase")} 2/2</RoundTag>}
extras={<StyledTag>{t("SpaceModal.phase")} 2/2</StyledTag>}
close={closeModal}
/>
<Dialog.Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export const EditorColumns = styled.div`
padding-bottom: var(--spacing-m);
`;

export const RoundTag = styled(Tag)`
border-radius: 10px;
export const StyledTag = styled(Tag)`
background-color: var(--color-bus-light);
color: var(--color-bus);
font-weight: 600;
Expand Down

0 comments on commit 414c5e3

Please sign in to comment.