some fixes

This commit is contained in:
kandrusyak
2022-12-06 16:16:12 +03:00
parent 8bf83aaa5b
commit 78f48b240b
12 changed files with 238 additions and 73 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
import { observer } from 'mobx-react-lite';
import { Toast } from './Toast2';
import { store } from '../store/store';
export const NotificationContainer = observer(() => (
<div className="absolute z-50 top-2 right-2 gap-2">
{store.notifications.map((e) => (
<Toast type={e.type} key={e.id} id={e.id}>
{e.message}
</Toast>
))}
</div>
));