diff --git a/app/features/sendouq/components/ModePrefenceIcons.tsx b/app/features/sendouq/components/ModePrefenceIcons.tsx index ea2b6b6ea..058076c36 100644 --- a/app/features/sendouq/components/ModePrefenceIcons.tsx +++ b/app/features/sendouq/components/ModePrefenceIcons.tsx @@ -2,6 +2,17 @@ import { ModeImage } from "~/components/Image"; import type { Group } from "~/db/types"; import { assertUnreachable } from "~/utils/types"; +const SZOnly = () => ; + +const AllModes = () => ( + <> + + + + + +); + export function ModePreferenceIcons({ preference, }: { @@ -15,7 +26,6 @@ export function ModePreferenceIcons({ case "NO_PREFERENCE": return "="; case "PREFER_ALL_MODES": - return "<"; case "PREFER_SZ": return ">"; default: @@ -25,19 +35,18 @@ export function ModePreferenceIcons({ return ( <> - {preference !== "ALL_MODES_ONLY" ? ( - + {["SZ_ONLY", "PREFER_SZ"].includes(preference) ? : null} + {["ALL_MODES_ONLY", "PREFER_ALL_MODES", "NO_PREFERENCE"].includes( + preference + ) ? ( + ) : null} {comparisonSign ? ( {comparisonSign} ) : null} - {preference !== "SZ_ONLY" ? ( - <> - - - - - + {["PREFER_SZ"].includes(preference) ? : null} + {["PREFER_ALL_MODES", "NO_PREFERENCE"].includes(preference) ? ( + ) : null} );