Skip to content

Commit

Permalink
Fix error alert icon
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Aug 10, 2024
1 parent 363c739 commit db968db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/nextjs/app/cow/_components/PoolCreation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect, useState } from "react";
import { PoolResetModal, StepsDisplay } from "./";
import { Address, parseUnits } from "viem";
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
import { Alert, ExternalLinkButton, TextField, TokenField, TransactionButton } from "~~/components/common/";
import {
type PoolCreationState,
Expand Down Expand Up @@ -195,8 +194,8 @@ export const PoolCreation = ({ state, clearState }: ManagePoolCreationProps) =>
{txError && (
<Alert type="error">
<div className="flex items-center gap-2">
<ExclamationTriangleIcon className="w-5 h-5" /> Error:{" "}
{(txError as { shortMessage?: string }).shortMessage || txError.message}
{" "}
Error: {(txError as { shortMessage?: string }).shortMessage || txError.message}
</div>
</Alert>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ export const AddressInfoDropdown = ({
</span>
<ChevronDownIcon className="h-6 w-4 ml-2 sm:ml-0" />
</summary>
<ul
tabIndex={0}
className="dropdown-content menu z-[2] p-2 mt-2 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
>
<ul tabIndex={0} className="dropdown-content menu z-[2] p-2 mt-2 bg-base-200 rounded-box gap-1">
<NetworkOptions hidden={!selectingNetwork} />
<li className={selectingNetwork ? "hidden" : ""}>
{addressCopied ? (
Expand Down

0 comments on commit db968db

Please sign in to comment.