mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-28 21:30:18 +01:00
feat(Toast): add Toast nearly identical to ChatGPT's (#1108)
This commit is contained in:
parent
ba5ab86037
commit
81a90d245b
10 changed files with 281 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import endpoints from './endpoints';
|
|||
import models from './models';
|
||||
import user from './user';
|
||||
import text from './text';
|
||||
import toast from './toast';
|
||||
import submission from './submission';
|
||||
import search from './search';
|
||||
import preset from './preset';
|
||||
|
|
@ -17,6 +18,7 @@ export default {
|
|||
...models,
|
||||
...user,
|
||||
...text,
|
||||
...toast,
|
||||
...submission,
|
||||
...search,
|
||||
...preset,
|
||||
|
|
|
|||
14
client/src/store/toast.ts
Normal file
14
client/src/store/toast.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { atom } from 'recoil';
|
||||
import { NotificationSeverity } from '~/common';
|
||||
|
||||
const toastState = atom({
|
||||
key: 'toastState',
|
||||
default: {
|
||||
open: false,
|
||||
message: '',
|
||||
severity: NotificationSeverity.SUCCESS,
|
||||
showIcon: true,
|
||||
},
|
||||
});
|
||||
|
||||
export default { toastState };
|
||||
Loading…
Add table
Add a link
Reference in a new issue