Skip to content

Commit a957972

Browse files
committed
2024-11-12 - remove ext recips from context
1 parent ec026e6 commit a957972

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

web-ui/src/AppFeedbackExternalRecipient.jsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,14 @@ const theme = extendTheme({
6666

6767

6868
getUserColorScheme();
69+
const customHistory = createBrowserHistory();
6970

7071
function AppFeedbackExternalRecipient() {
7172
return (
7273
<CssVarsProvider theme={theme}>
7374
<LocalizationProvider dateAdapter={AdapterDateFns}>
74-
<Router>
75-
<AppFeedbackExternalRecipientContextProvider>
76-
<ErrorBoundary FallbackComponent={ErrorFallback}>
77-
<div>
78-
<div className="AppFeedbackExternalRecipient">
79-
<RoutesFeedbackExternalRecipient />
80-
</div>
81-
</div>
82-
</ErrorBoundary>
83-
<SnackBarWithContext />
84-
</AppFeedbackExternalRecipientContextProvider>
75+
<Router history={customHistory}>
76+
<RoutesFeedbackExternalRecipient />
8577
</Router>
8678
</LocalizationProvider>
8779
</CssVarsProvider>

web-ui/src/context/AppContext.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
UPDATE_CERTIFICATIONS,
1515
UPDATE_TEAMS,
1616
UPDATE_PEOPLE_LOADING,
17-
UPDATE_TEAMS_LOADING, UPDATE_EXTERNAL_RECIPIENTS, UPDATE_EXTERNAL_RECIPIENTS_LOADING
17+
UPDATE_TEAMS_LOADING
1818
} from './actions';
1919
import {
2020
getCurrentUser,

web-ui/src/context/reducer.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export const initialState = {
5959
reviewPeriods: []
6060
};
6161

62+
// 2024-11-12 - Added then removed for feedback_external_recipients
63+
6264
export const reducer = (state, action) => {
6365
switch (action.type) {
6466
case MY_PROFILE_UPDATE:
@@ -248,12 +250,6 @@ export const reducer = (state, action) => {
248250
case UPDATE_REVIEW_PERIODS:
249251
state.reviewPeriods = action.payload;
250252
break;
251-
case UPDATE_EXTERNAL_RECIPIENTS:
252-
state.feedbackExternalRecipients = action.payload;
253-
break;
254-
case UPDATE_EXTERNAL_RECIPIENTS_LOADING:
255-
state.loading = { ...state.loading, feedbackExternalRecipients: action.payload };
256-
break;
257253
default:
258254
}
259255
return { ...state };

0 commit comments

Comments
 (0)