Skip to content

Commit

Permalink
fix: use primary tag variants in partners (#3632)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski authored Sep 1, 2023
1 parent b3e4c8f commit 01d06ae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ const ApplicationForm = ({ listingId, editMode, application }: ApplicationFormPr
<>
<StatusBar>
<Tag
variant={
application?.status == ApplicationStatus.submitted ? "success-inverse" : "primary"
}
variant={application?.status == ApplicationStatus.submitted ? "success" : "primary"}
size={"lg"}
>
{application?.status
Expand Down
4 changes: 2 additions & 2 deletions sites/partners/src/components/listings/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export const getListingStatusTag = (listingStatus: ListingStatus) => {
switch (listingStatus) {
case ListingStatus.active:
return (
<Tag variant={"success-inverse"} size={"lg"} id={"listing-status-active"}>
<Tag variant={"success"} size={"lg"} id={"listing-status-active"}>
{t(`listings.listingStatus.active`)}
</Tag>
)
case ListingStatus.closed:
return (
<Tag variant={"secondary-inverse"} size={"lg"} id={"listing-status-closed"}>
<Tag variant={"secondary"} size={"lg"} id={"listing-status-closed"}>
{t(`listings.listingStatus.closed`)}
</Tag>
)
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/src/components/users/FormUserManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const FormUserManage = ({

{mode === "edit" && (
<div className="ml-2 mt-1 flex items-center justify-center">
<Tag variant={user.confirmedAt ? "success-inverse" : "primary"}>
<Tag variant={user.confirmedAt ? "success" : "primary"}>
{user.confirmedAt ? t("users.confirmed") : t("users.unconfirmed")}
</Tag>
</div>
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/src/pages/application/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function ApplicationsList() {
switch (application?.status) {
case ApplicationStatus.submitted:
return (
<Tag variant={"success-inverse"} size={"lg"}>
<Tag variant={"success"} size={"lg"}>
{t(`application.details.applicationStatus.submitted`)}
</Tag>
)
Expand Down
4 changes: 1 addition & 3 deletions sites/partners/src/pages/application/[id]/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ const Flag = () => {
>
<Tag
variant={
data?.status === EnumApplicationFlaggedSetStatus.resolved
? "success-inverse"
: "primary"
data?.status === EnumApplicationFlaggedSetStatus.resolved ? "success" : "primary"
}
size={"lg"}
>
Expand Down

0 comments on commit 01d06ae

Please sign in to comment.