fix: load auth logos from assets host

This commit is contained in:
Arthur Belleville 2026-04-18 11:43:58 +02:00
parent fa12aa34a5
commit 4e6be58444
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -41,6 +41,10 @@ describe("LoginPage", () => {
expect(screen.getByLabelText("Email")).toBeInTheDocument();
expect(screen.getByLabelText("Mot de passe")).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Connexion" })).toBeInTheDocument();
expect(screen.getAllByAltText("Xtablo")[0]).toHaveAttribute(
"src",
"https://assets.xtablo.com/logo_dark.png"
);
});
it("submits email/password login and resumes the stored redirect", async () => {

View file

@ -20,6 +20,8 @@ type AuthCardShellProps = {
cardClassName?: string;
};
const XTABLO_ASSETS_BASE_URL = "https://assets.xtablo.com";
export function AuthCardShell({
title,
description,
@ -101,12 +103,12 @@ export function AuthCardShell({
<div className="mb-6 flex justify-center">
<img
src="/logo_dark.png"
src={`${XTABLO_ASSETS_BASE_URL}/logo_dark.png`}
alt="Xtablo"
className="w-16 h-16 object-contain block dark:hidden"
/>
<img
src="/logo_white.png"
src={`${XTABLO_ASSETS_BASE_URL}/logo_white.png`}
alt="Xtablo"
className="w-16 h-16 object-contain hidden dark:block"
/>