Added unused imports and vars and fixed lint (#929)

This commit is contained in:
Lucas Bordeau
2023-07-26 02:18:25 +02:00
committed by GitHub
parent c0700c9b20
commit b52745533a
17 changed files with 89 additions and 27 deletions

View File

@ -19,9 +19,10 @@ export const snackBarInternalState = atom<SnackBarState>({
},
});
// TODO: use a recoil callback
export const snackBarSetQueueState = selector<SnackBarOptions | null>({
key: 'snackBarQueueState',
get: ({ get }) => null, // We don't care about getting the value
get: ({ get: _get }) => null, // We don't care about getting the value
set: ({ set }, newValue) =>
set(snackBarInternalState, (prev) => {
if (prev.queue.length >= prev.maxQueue) {