mirror of
https://github.com/codex-storage/codex-marketplace-ui.git
synced 2025-02-22 20:58:30 +00:00
Add an error message for the storage request
This commit is contained in:
parent
ea08906c9a
commit
91715a2f11
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user