From 0745e37ba517756ae918a53d8f6c62a73f3fc553 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 31 Jan 2022 23:56:47 +0200 Subject: [PATCH] Add unranked/ranked style and logic --- app/components/play/GroupCard.tsx | 12 ++++++++++-- app/models/LFGGroup.server.ts | 17 +++++++++++++++-- app/routes/play/looking.tsx | 28 +++++++++++++++++++++------- app/styles/play-looking.css | 24 +++++++++++++++++++++--- 4 files changed, 67 insertions(+), 14 deletions(-) diff --git a/app/components/play/GroupCard.tsx b/app/components/play/GroupCard.tsx index 04d6c2e54..9f1af68f7 100644 --- a/app/components/play/GroupCard.tsx +++ b/app/components/play/GroupCard.tsx @@ -1,3 +1,4 @@ +import clsx from "clsx"; import { Form } from "remix"; import { Avatar } from "~/components/Avatar"; import { Button } from "~/components/Button"; @@ -10,14 +11,16 @@ export function GroupCard({ group, isCaptain = false, type, + ranked, }: { group: LookingLoaderDataGroup; isCaptain?: boolean; type?: "LIKES_GIVEN" | "NEUTRAL" | "LIKES_RECEIVED"; + ranked?: boolean; }) { const buttonText = () => { if (type === "LIKES_GIVEN") return "Undo"; - if (type === "NEUTRAL") return "Let's play!"; + if (type === "NEUTRAL") return "Let's play?"; return "Group up"; }; @@ -25,12 +28,17 @@ export function GroupCard({ if (type === "LIKES_GIVEN") return "UNLIKE"; if (type === "NEUTRAL") return "LIKE"; - return "UNITE_GROUP"; + return "UNITE_GROUPS"; }; return (