mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
fix share date setting, notification, lint fix
This commit is contained in:
parent
53499e2579
commit
c21f7df7b2
3 changed files with 10 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import type { NotificationsProps as MantineNotificationProps } from '@mantine/notifications';
|
||||
import type { NotificationData } from '@mantine/notifications';
|
||||
|
||||
import {
|
||||
cleanNotifications,
|
||||
|
|
@ -11,7 +11,7 @@ import clsx from 'clsx';
|
|||
|
||||
import styles from './toast.module.css';
|
||||
|
||||
interface NotificationProps extends MantineNotificationProps {
|
||||
interface NotificationProps extends Omit<NotificationData, 'message'> {
|
||||
message?: string;
|
||||
onClose?: () => void;
|
||||
type?: 'error' | 'info' | 'success' | 'warning';
|
||||
|
|
@ -26,7 +26,7 @@ const getTitle = (type: NotificationProps['type']) => {
|
|||
|
||||
const showToast = ({ message, onClose, type, ...props }: NotificationProps) => {
|
||||
return notifications.show({
|
||||
autoClose: props.autoClose,
|
||||
...props,
|
||||
classNames: {
|
||||
body: styles.body,
|
||||
closeButton: styles.closeButton,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue