Skip to content

Commit

Permalink
fix: alt text in error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum committed Nov 30, 2023
1 parent 34c4559 commit b0c7f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/error/ConnectWalletErrorMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function ConnectWalletErrorMessage({
cta={cta ?? <ConnectWallet />}
message={message ?? "Please connect wallet to proceed"}
title={title ?? "Connect wallet"}
img={<img src={frame} alt={`${title} image`} />}
img={<img src={frame} alt={title} />}
/>
);
}
9 changes: 6 additions & 3 deletions src/components/error/EmptyErrorMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ import frame from "assets/frame.png";

import { ErrorMessage, ErrorMessageProps } from "./ErrorMessage";

type EmptyErrorMessage = Pick<ErrorMessageProps, "cta" | "title" | "message">;
type EmptyErrorMessageProps = Pick<
ErrorMessageProps,
"cta" | "title" | "message"
>;
export function EmptyErrorMessage({
cta,
title,
message,
...rest
}: EmptyErrorMessage) {
}: EmptyErrorMessageProps) {
return (
<ErrorMessage
cta={cta}
message={message}
title={title}
img={<img src={frame} alt={`${title} image`} />}
img={<img src={frame} alt={title} />}
{...rest}
/>
);
Expand Down

0 comments on commit b0c7f9c

Please sign in to comment.