fix share date setting, notification, lint fix

This commit is contained in:
Kendall Garner 2025-09-04 21:15:42 -07:00
parent 53499e2579
commit c21f7df7b2
No known key found for this signature in database
GPG key ID: 9355F387FE765C94
3 changed files with 10 additions and 9 deletions

View file

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