Skip to content

Commit

Permalink
i'm curious if it breaks vol6 (need to squash that later ffs)
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Feb 9, 2024
1 parent bb10876 commit 145d447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/api/images/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { headers } from "next/headers";
function WhoamiImage({
nickname,
expiration,
expirationDate,
groups,
theme,
}: WhoamiProps & {
Expand Down Expand Up @@ -123,7 +124,7 @@ function WhoamiImage({
fontWeight: "bold",
}}
>
{expiration}
{expiration} ({expirationDate})
</span>
</div>
{groups.length > 0 && (
Expand Down Expand Up @@ -204,14 +205,15 @@ export async function GET(request: Request) {
);
}

const { groups, nickname, expiration } = getBarData(jwt);
const { groups, nickname, expiration, expirationDate} = getBarData(jwt);

return new ImageResponse(
(
<WhoamiImage
groups={groups}
nickname={nickname}
expiration={expiration}
expirationDate={expirationDate}
theme={theme}
/>
),
Expand Down
1 change: 1 addition & 0 deletions src/components/whoami.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { IconUsercircle } from "./icons/IconUserCircle";
export interface WhoamiProps {
nickname: string;
expiration: string;
expirationDate: string;
groups: string[];
}

Expand Down

0 comments on commit 145d447

Please sign in to comment.