-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[821] ui/config-wizard: Shared state in redux slice (#837)
* ui/eslintrc: Allow mutating immer drafts * ui/store: TypeScript-friendly dispatch hook * ui/config-wizard: Slice for sharing wizard step data * ui/config-wizard: Navigate through steps with dispatch instead of callback props * Update changelog * ui/config-wizard: Use selectors * ui/organization: Feature directory for oganization outside of config-wizard https://github.com/ethyca/fides/pull/837/files#r912233598
- Loading branch information
1 parent
e9bcb31
commit bcf9ada
Showing
18 changed files
with
325 additions
and
234 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,6 +1,6 @@ | ||
import { TypedUseSelectorHook, useSelector } from "react-redux"; | ||
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux"; | ||
|
||
import type { AppState } from "./store"; | ||
import type { AppDispatch, AppState } from "./store"; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export const useAppDispatch: () => AppDispatch = useDispatch; | ||
export const useAppSelector: TypedUseSelectorHook<AppState> = useSelector; |
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.