mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-08 00:13:06 +00:00
Merge pull request #70 from codex-storage/releases/v0.0.9
Releases/v0.0.9
This commit is contained in:
commit
503cca59af
@ -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 PurchaseStateIcon from "../../assets/icons/purchases-state-pending.svg?react";
|
||||||
import SuccessCircleIcon from "../../assets/icons/success-circle.svg?react";
|
import SuccessCircleIcon from "../../assets/icons/success-circle.svg?react";
|
||||||
import ErrorCircleIcon from "../../assets/icons/error-circle.svg?react";
|
import ErrorCircleIcon from "../../assets/icons/error-circle.svg?react";
|
||||||
@ -8,7 +8,7 @@ type Props = {
|
|||||||
message: string | undefined;
|
message: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CustomStateCellRender = ({ state }: Props) => {
|
export const CustomStateCellRender = ({ state, message }: Props) => {
|
||||||
const icons = {
|
const icons = {
|
||||||
pending: PurchaseStateIcon,
|
pending: PurchaseStateIcon,
|
||||||
submitted: PurchaseStateIcon,
|
submitted: PurchaseStateIcon,
|
||||||
@ -32,14 +32,13 @@ export const CustomStateCellRender = ({ state }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<Cell>
|
<Cell>
|
||||||
<p className={"cell-state" + states[state as keyof typeof states]}>
|
<p className={"cell-state" + states[state as keyof typeof states]}>
|
||||||
{/* {message ? (
|
{message ? (
|
||||||
<Tooltip message={message}>
|
<Tooltip message={message}>
|
||||||
<Icon width={32} className="cell-stateIcon" />
|
<Icon width={20} className="cell-stateIcon" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : (
|
) : (
|
||||||
<Icon width={32} className="cell-stateIcon" />
|
<Icon width={20} className="cell-stateIcon" />
|
||||||
)} */}
|
)}
|
||||||
<Icon width={20} />
|
|
||||||
</p>
|
</p>
|
||||||
</Cell>
|
</Cell>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -86,7 +86,6 @@ export function LogLevel() {
|
|||||||
message={toast.message}
|
message={toast.message}
|
||||||
time={toast.time}
|
time={toast.time}
|
||||||
variant={toast.variant}
|
variant={toast.variant}
|
||||||
duration={400000000}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user