forked from passportxyz/passport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(app): updating libraries, improving user state management, s…
…qaushing bugs (passportxyz#1874) * feat(app): upgrading libraries, improving user state management * refactor(app): fix unnecessary rerendering from onchainContext * fix(app): bug squashing
- Loading branch information
1 parent
d29d81f
commit d7eaeee
Showing
68 changed files
with
2,361 additions
and
2,395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { screen, waitForElementToBeRemoved } from "@testing-library/react"; | ||
import { toast } from "@chakra-ui/react"; | ||
import { toastStore } from "@chakra-ui/toast/dist/toast.store"; | ||
|
||
export const closeAllToasts = async () => { | ||
// close all toasts before each tests and wait for them to be removed | ||
toast.closeAll(); | ||
toastStore.closeAll(); | ||
const toasts = screen.queryAllByRole("listitem"); | ||
await Promise.all(toasts.map((toasts) => waitForElementToBeRemoved(toasts))); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.