Merge pull request #70 from codex-storage/releases/v0.0.9

Releases/v0.0.9
This commit is contained in:
Arnaud 2024-11-10 04:42:44 +01:00 committed by GitHub
commit 503cca59af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

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 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>
); );

View File

@ -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>
); );