mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): remove the close button from toast (#1318)
This commit is contained in:
parent
4fefdc8497
commit
40c8d0eeed
2 changed files with 1 additions and 14 deletions
|
@ -23,10 +23,6 @@ div.toast {
|
|||
margin: 0 _.unit(3);
|
||||
}
|
||||
|
||||
.closeIcon {
|
||||
color: var(--color-icon);
|
||||
}
|
||||
|
||||
&.success {
|
||||
border: 1px solid var(--color-success-70);
|
||||
background-color: var(--color-success-99);
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
import { Toaster, resolveValue, toast } from 'react-hot-toast';
|
||||
import { Toaster, resolveValue } from 'react-hot-toast';
|
||||
|
||||
import Error from '@/assets/images/toast-error.svg';
|
||||
import Success from '@/assets/images/toast-success.svg';
|
||||
import Close from '@/icons/Close';
|
||||
|
||||
import IconButton from '../IconButton';
|
||||
import * as styles from './index.module.scss';
|
||||
|
||||
const Toast = () => {
|
||||
|
@ -30,13 +28,6 @@ const Toast = () => {
|
|||
<span className={styles.message}>
|
||||
{resolveValue(toastInstance.message, toastInstance)}
|
||||
</span>
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
toast.remove();
|
||||
}}
|
||||
>
|
||||
<Close className={styles.closeIcon} />
|
||||
</IconButton>
|
||||
</div>
|
||||
)}
|
||||
</Toaster>
|
||||
|
|
Loading…
Reference in a new issue