feat(frontend): add flags to user page

This commit is contained in:
sam 2024-09-29 20:24:47 +02:00
parent f539902711
commit dc18ab60d2
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
10 changed files with 68 additions and 5 deletions

View file

@ -0,0 +1,5 @@
import { PartialMember, PrideFlag } from "~/lib/api/user";
export type Member = PartialMember & {
flags: PrideFlag[];
};

View file

@ -13,6 +13,7 @@ export type User = PartialUser & {
names: FieldEntry[];
pronouns: Pronoun[];
fields: Field[];
flags: PrideFlag[];
};
export type UserWithMembers = User & { members: PartialMember[] };
@ -50,6 +51,13 @@ export type Field = {
entries: FieldEntry[];
};
export type PrideFlag = {
id: string;
image_url: string;
name: string;
description: string | null;
};
export type CustomPreference = {
icon: string;
tooltip: string;