Skip to content

Commit

Permalink
Merge pull request #1131 from oraidex/fix/resolve-issue
Browse files Browse the repository at this point in the history
fix img theme
  • Loading branch information
haunv3 authored Jan 14, 2025
2 parents afea546 + 097eaec commit 71678b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Toasts/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const ToastInfo: FunctionComponent<{
textLink: string;
}> = ({ message, link, textLink }) => (
<div className={styles.toast_content}>
{getIconToastTx(<InfoIcon />, configTheme?.toast.txInfoImg)}
{getIconToastTx(<InfoIcon />, configTheme?.toast?.txInfoImg)}
<section className={styles.toast_section}>
<p>{message}</p>
{link && (
Expand Down Expand Up @@ -198,7 +198,7 @@ const getIconToastTx = (txIcon, txImg) => {

const ToastTxFailed: FunctionComponent<{ message: string }> = ({ message }) => (
<div className={styles.toast_content}>
{getIconToastTx(<FailedIcon />, configTheme?.toast.txFailImg)}
{getIconToastTx(<FailedIcon />, configTheme?.toast?.txFailImg)}
<section className={styles.toast_section}>
<h6>Transaction Failed</h6>
<p>{message}</p>
Expand All @@ -208,7 +208,7 @@ const ToastTxFailed: FunctionComponent<{ message: string }> = ({ message }) => (

const ToastKeplrFailed: FunctionComponent<{ message: string }> = ({ message }) => (
<div className={styles.toast_content}>
{getIconToastTx(<FailedIcon />, configTheme?.toast.txFailImg)}
{getIconToastTx(<FailedIcon />, configTheme?.toast?.txFailImg)}
<section className={styles.toast_section}>
<h6>Keplr failed</h6>
<p>{message}</p>
Expand All @@ -218,7 +218,7 @@ const ToastKeplrFailed: FunctionComponent<{ message: string }> = ({ message }) =

const ToastMetamaskFailed: FunctionComponent<{ message: string }> = ({ message }) => (
<div className={styles.toast_content}>
{getIconToastTx(<FailedIcon />, configTheme?.toast.txFailImg)}
{getIconToastTx(<FailedIcon />, configTheme?.toast?.txFailImg)}
<section className={styles.toast_section}>
<h6>Metamask failed</h6>
<p>{message}</p>
Expand All @@ -228,7 +228,7 @@ const ToastMetamaskFailed: FunctionComponent<{ message: string }> = ({ message }

const ToastTronLinkFailed: FunctionComponent<{ message: string }> = ({ message }) => (
<div className={styles.toast_content}>
{getIconToastTx(<FailedIcon />, configTheme?.toast.txFailImg)}
{getIconToastTx(<FailedIcon />, configTheme?.toast?.txFailImg)}
<section className={styles.toast_section}>
<h6>Tronlink failed</h6>
<p>{message}</p>
Expand All @@ -238,7 +238,7 @@ const ToastTronLinkFailed: FunctionComponent<{ message: string }> = ({ message }

const ToastWalletFailed: FunctionComponent<{ message: string }> = ({ message }) => (
<div className={styles.toast_content}>
{getIconToastTx(<FailedIcon />, configTheme?.toast.txFailImg)}
{getIconToastTx(<FailedIcon />, configTheme?.toast?.txFailImg)}
<section className={styles.toast_section}>
<h6>Wallet failed</h6>
<p>{message}</p>
Expand Down

0 comments on commit 71678b6

Please sign in to comment.