0
Fork 0
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:
Xiao Yijun 2022-06-30 14:10:56 +08:00 committed by GitHub
parent 4fefdc8497
commit 40c8d0eeed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 14 deletions

View file

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

View file

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