From fcf0735d756008f02bd3fb8a542cc2c4ab1e27e9 Mon Sep 17 00:00:00 2001
From: Kalle <38327916+Sendouc@users.noreply.github.com>
Date: Sun, 15 Mar 2026 16:13:38 +0200
Subject: [PATCH] Fix errors
---
.../TournamentLFGRepository.server.ts | 7 +------
.../components/LFGGroupCard.module.css | 19 -------------------
.../components/LFGGroupCard.tsx | 17 +++++------------
.../tournament-lfg/routes/to.$id.looking.tsx | 9 ++++-----
4 files changed, 10 insertions(+), 42 deletions(-)
diff --git a/app/features/tournament-lfg/TournamentLFGRepository.server.ts b/app/features/tournament-lfg/TournamentLFGRepository.server.ts
index ecfc4cc33..ac4652d27 100644
--- a/app/features/tournament-lfg/TournamentLFGRepository.server.ts
+++ b/app/features/tournament-lfg/TournamentLFGRepository.server.ts
@@ -4,10 +4,7 @@ import { db } from "~/db/sql";
import type { DB, Tables } from "~/db/tables";
import { shortNanoid } from "~/utils/id";
import invariant from "~/utils/invariant";
-import {
- concatUserSubmittedImagePrefix,
- userChatNameColorForJson,
-} from "~/utils/kysely.server";
+import { concatUserSubmittedImagePrefix } from "~/utils/kysely.server";
import { errorIsSqliteForeignKeyConstraintFailure } from "~/utils/sql";
import { randomTeamName } from "~/utils/team-name";
@@ -114,7 +111,6 @@ export async function findLookingTeamsByTournamentId(tournamentId: number) {
role: eb.ref("TournamentTeamMember.role"),
isStayAsSub: eb.ref("TournamentTeamMember.isStayAsSub"),
weapons: eb.ref("User.qWeaponPool"),
- chatNameColor: userChatNameColorForJson,
plusTier: eb.ref("PlusTier.tier"),
}),
])
@@ -155,7 +151,6 @@ export async function findSubGroups(tournamentId: number) {
role: eb.ref("TournamentTeamMember.role"),
isStayAsSub: eb.ref("TournamentTeamMember.isStayAsSub"),
weapons: eb.ref("User.qWeaponPool"),
- chatNameColor: userChatNameColorForJson,
plusTier: eb.ref("PlusTier.tier"),
}),
])
diff --git a/app/features/tournament-lfg/components/LFGGroupCard.module.css b/app/features/tournament-lfg/components/LFGGroupCard.module.css
index 85d70b412..4cb0fc638 100644
--- a/app/features/tournament-lfg/components/LFGGroupCard.module.css
+++ b/app/features/tournament-lfg/components/LFGGroupCard.module.css
@@ -30,10 +30,6 @@
color: var(--text);
}
-.avatar {
- min-width: 36px;
-}
-
.extraInfo {
font-size: var(--fonts-xs);
background-color: var(--bg-darker);
@@ -47,21 +43,6 @@
min-height: 24px;
}
-.extraInfoButton {
- font-size: var(--fonts-xs);
- background-color: var(--bg-darker);
- border-radius: var(--rounded);
- padding: var(--s-0-5) var(--s-1-5);
- width: max-content;
- display: flex;
- align-items: center;
- gap: var(--s-1);
- font-weight: var(--semi-bold);
- color: var(--text);
- border: none;
- min-height: 24px;
-}
-
.vcIcon {
height: 15px;
stroke-width: 2;
diff --git a/app/features/tournament-lfg/components/LFGGroupCard.tsx b/app/features/tournament-lfg/components/LFGGroupCard.tsx
index 1ad2ad43f..912b1aabe 100644
--- a/app/features/tournament-lfg/components/LFGGroupCard.tsx
+++ b/app/features/tournament-lfg/components/LFGGroupCard.tsx
@@ -1,4 +1,5 @@
import clsx from "clsx";
+import { Mic, Star, Volume2, VolumeX } from "lucide-react";
import * as React from "react";
import { useTranslation } from "react-i18next";
import { Link, useFetcher } from "react-router";
@@ -7,11 +8,6 @@ import { Divider } from "~/components/Divider";
import { SendouButton } from "~/components/elements/Button";
import { SendouPopover } from "~/components/elements/Popover";
import { Image, WeaponImage } from "~/components/Image";
-import { MicrophoneIcon } from "~/components/icons/Microphone";
-import { SpeakerIcon } from "~/components/icons/Speaker";
-import { SpeakerXIcon } from "~/components/icons/SpeakerX";
-import { StarIcon } from "~/components/icons/Star";
-import { StarFilledIcon } from "~/components/icons/StarFilled";
import { SubmitButton } from "~/components/SubmitButton";
import type { Pronouns } from "~/db/tables";
import { useUser } from "~/features/auth/core/user";
@@ -280,7 +276,7 @@ function LFGMemberRoleManager({
}) {
const fetcher = useFetcher();
const { t } = useTranslation(["q"]);
- const Icon = member.role === "OWNER" ? StarFilledIcon : StarIcon;
+ const isFilled = member.role === "OWNER";
if (!showActions && member.role !== "OWNER") return null;
@@ -290,10 +286,11 @@ function LFGMemberRoleManager({