Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use primary tag variants in partners #3632

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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