Add an error message for the storage request

This commit is contained in:
Arnaud 2024-11-10 10:39:08 +07:00
parent ea08906c9a
commit 91715a2f11
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -1,4 +1,4 @@
import { Cell } from "@codex-storage/marketplace-ui-components";
import { Cell, Tooltip } from "@codex-storage/marketplace-ui-components";
import PurchaseStateIcon from "../../assets/icons/purchases-state-pending.svg?react";
import SuccessCircleIcon from "../../assets/icons/success-circle.svg?react";
import ErrorCircleIcon from "../../assets/icons/error-circle.svg?react";
@ -8,7 +8,7 @@ type Props = {
message: string | undefined;
};
export const CustomStateCellRender = ({ state }: Props) => {
export const CustomStateCellRender = ({ state, message }: Props) => {
const icons = {
pending: PurchaseStateIcon,
submitted: PurchaseStateIcon,
@ -32,14 +32,13 @@ export const CustomStateCellRender = ({ state }: Props) => {
return (
<Cell>
<p className={"cell-state" + states[state as keyof typeof states]}>
{/* {message ? (
{message ? (
<Tooltip message={message}>
<Icon width={32} className="cell-stateIcon" />
<Icon width={20} className="cell-stateIcon" />
</Tooltip>
) : (
<Icon width={32} className="cell-stateIcon" />
)} */}
<Icon width={20} />
<Icon width={20} className="cell-stateIcon" />
)}
</p>
</Cell>
);