fix: load auth logos from assets host
This commit is contained in:
parent
fa12aa34a5
commit
4e6be58444
2 changed files with 8 additions and 2 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue