-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Recoil with Jotai for global state management
Fixes #371 Replace Recoil with Jotai for global state management. * Update `package.json` to list `jotai` as a dependency and remove `recoil`. * Update `README.md` to mention Jotai as the state management tool instead of Recoil. * Replace `RecoilRoot` with `Provider` from Jotai in multiple test files such as `src/components/header/header.test.tsx`, `src/components/protected-route/protected-route.test.tsx`, `src/hooks/use-auth-sso.test.tsx`, `src/hooks/use-auth.test.tsx`, `src/main.tsx`, `src/pages/dashboard/dashboard-bar-chart/dashboard-bar-chart.test.tsx`, `src/pages/dashboard/dashboard-pie-chart/dashboard-pie-chart.test.tsx`, `src/pages/dashboard/dashboard-table/dashboard-table.test.tsx`, `src/pages/dashboard/dashboard.test.tsx`, `src/pages/details/details.test.tsx`, `src/pages/home/home.test.tsx`, `src/pages/search-results/search-results.test.tsx`, and `src/pages/sign-in/sign-in.test.tsx`. * Update import statements for `Provider` from Jotai in the above-mentioned files. * Replace `atom` with `atom` from Jotai in `src/store.ts` and update the import statement. * Replace `useRecoilState` with `useAtom` from Jotai in `src/hooks/use-auth.ts` and update the import statement. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MetroStar/comet-starter/issues/371?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
16 changed files
with
46 additions
and
46 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
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
6 changes: 3 additions & 3 deletions
6
src/pages/dashboard/dashboard-bar-chart/dashboard-bar-chart.test.tsx
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
6 changes: 3 additions & 3 deletions
6
src/pages/dashboard/dashboard-pie-chart/dashboard-pie-chart.test.tsx
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
10 changes: 5 additions & 5 deletions
10
src/pages/dashboard/dashboard-table/dashboard-table.test.tsx
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
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