mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:16 +01:00
Filesystem Sync (#142)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { ShowToastRequest } from '@yaakapp-internal/plugin';
|
||||
import type { ShowToastRequest } from '@yaakapp-internal/plugins';
|
||||
import { AnimatePresence } from 'framer-motion';
|
||||
import React, {type ReactNode, useContext, useMemo, useRef, useState} from 'react';
|
||||
import React, { type ReactNode, useContext, useMemo, useRef, useState } from 'react';
|
||||
import { useListenToTauriEvent } from '../hooks/useListenToTauriEvent';
|
||||
import { generateId } from '../lib/generateId';
|
||||
import {Toast, type ToastProps} from './core/Toast';
|
||||
import { Toast, type ToastProps } from './core/Toast';
|
||||
import { Portal } from './Portal';
|
||||
import { ToastContext } from './ToastContext';
|
||||
|
||||
@@ -29,7 +29,6 @@ export interface Actions {
|
||||
hide: (id: string) => void;
|
||||
}
|
||||
|
||||
|
||||
export const ToastProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
const [toasts, setToasts] = useState<ToastState['toasts']>([]);
|
||||
const timeoutRef = useRef<NodeJS.Timeout>();
|
||||
|
||||
Reference in New Issue
Block a user