feat: avoid removing notification when mouse hover

This commit is contained in:
2026-07-22 18:23:09 +02:00
parent 9e3f3803a6
commit 5cee5a2047
3 changed files with 33 additions and 7 deletions

View File

@ -16,7 +16,7 @@ function App() {
const [dsps, setDsps] = useState<DSP[]>([]);
const [selected, setSelected] = useState<number | null>(null);
const [page, setPage] = useState<AppPage>('home');
const { notifications, notify, removeNotification } = useNotifications();
const { notifications, notify, removeNotification, hoverNotification } = useNotifications();
async function addDSP(dsp: Omit<DSP, 'id' | 'status'>) {
try {
@ -126,7 +126,7 @@ function App() {
return (
<div className="app">
<Notifications notifications={notifications} onRemove={removeNotification} />
<Notifications notifications={notifications} onRemove={removeNotification} onHover={hoverNotification}/>
<TopBar
dsps={dsps}