Skip to content

Commit

Permalink
swapped colors and fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Oct 27, 2024
1 parent 166c5ed commit d694180
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/components/tickets/TicketItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RawTicket, TicketCategory, TicketStatus } from "@/chat-api/RawData";
import { Dynamic, Show } from "solid-js/web";
import { Show } from "solid-js";
import { Dynamic } from "solid-js/web";
import { css, styled } from "solid-styled-components";
import { CustomLink } from "../ui/CustomLink";
import Text from "../ui/Text";
Expand Down Expand Up @@ -141,18 +142,18 @@ export const TicketStatusToName = (as: "mod" | "user") =>
({
[TicketStatus.CLOSED_AS_DONE]: {
text: "Resolved",
color: "var(--primary-color)",
color: "var(--success-color)",
},
[TicketStatus.CLOSED_AS_INVALID]: {
text: "Invalid",
color: "var(--alert-color)",
},
[TicketStatus.WAITING_FOR_MODERATOR_RESPONSE]: {
text: as === "user" ? "Reply Sent" : "Response Needed",
color: as === "user" ? "var(--success-color)" : "var(--warn-color)",
color: as === "user" ? "var(--primary-color)" : "var(--warn-color)",
},
[TicketStatus.WAITING_FOR_USER_RESPONSE]: {
text: as === "user" ? "Response Needed" : "Reply Sent",
color: as === "user" ? "var(--warn-color)" : "var(--success-color)",
color: as === "user" ? "var(--warn-color)" : "var(--primary-color)",
},
} as Record<string, { text: string; color: string }>);
8 changes: 6 additions & 2 deletions src/components/tickets/TicketsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ const TicketsPage = () => {
>
<Breadcrumb>
<Show when={!isModeration()}>
<BreadcrumbItem href="/app" icon="home" title={t("dashboard.title")} />
<BreadcrumbItem
href="/app"
icon="home"
title={t("dashboard.title")}
/>
</Show>
<Show when={isModeration()}>
<BreadcrumbItem
Expand Down Expand Up @@ -115,7 +119,7 @@ const TicketStatusButtons = (props: {
}) => {
return (
<FlexColumn gap={4}>
<Text>Sort:</Text>
<Text>Filter:</Text>
<FlexRow wrap gap={4}>
<For each={Object.keys(TicketStatusToName("mod"))}>
{(key) => {
Expand Down

0 comments on commit d694180

Please sign in to comment.