diff --git a/.env.example b/.env.example index 85b197214..84953e12e 100644 --- a/.env.example +++ b/.env.example @@ -7,3 +7,6 @@ DISCORD_CLIENT_ID= DISCORD_CLIENT_SECRET= COOKIE_SECRET= FRONT_PAGE_URL=http://localhost:3000/ +LANISTA_TOKEN=lanista +LANISTA_URL= +LANISTA_URL_TOKEN= \ No newline at end of file diff --git a/app/components/Avatar.tsx b/app/components/Avatar.tsx index 7f2003433..055bfcc28 100644 --- a/app/components/Avatar.tsx +++ b/app/components/Avatar.tsx @@ -3,20 +3,21 @@ import { MyCSSProperties } from "~/utils"; export function Avatar({ user, - tiny = false, + size, }: { user: { discordId: string; discordAvatar: string | null }; - tiny?: boolean; + size?: "tiny" | "mini"; }) { const style: MyCSSProperties = { - "--_avatar-size": tiny ? "2rem" : undefined, + "--_avatar-size": + size === "tiny" ? "2rem" : size === "mini" ? "1.5rem" : undefined, }; return ( -