Skip to content

Commit

Permalink
fix(deps): update dependency react-redux to v9 (#1268)[frontend]
Browse files Browse the repository at this point in the history
* fix(deps): update dependency react-redux to v9

* chore(deps): update reduxjs/toolkit react-redux [frontend]

* fix(deps): fix test case [frontend]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: guzhongren <guzhongren@live.cn>
  • Loading branch information
renovate[bot] and guzhongren authored Mar 22, 2024
1 parent 5674276 commit a660144
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 49 deletions.
2 changes: 1 addition & 1 deletion frontend/__tests__/context/notificationSlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('notification reducer', () => {
{ id: '2', title: 'Notification', message: 'Notification Message 2' },
],
},
closeAllNotifications,
closeAllNotifications(),
);

expect(stepper.notifications).toEqual([]);
Expand Down
2 changes: 1 addition & 1 deletion frontend/__tests__/context/stepperSlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('stepper reducer', () => {
});

it('should reset to 0 when handle reset', () => {
const stepper = stepperReducer(undefined, resetStep);
const stepper = stepperReducer(undefined, resetStep());

expect(stepper.stepNumber).toEqual(ZERO);
expect(stepper.timeStamp).toEqual(ZERO);
Expand Down
1 change: 0 additions & 1 deletion frontend/__tests__/utils/setupStoreUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export const setupStore = () => {
[metaSlice.name]: metaSlice.reducer,
[notificationSlice.name]: notificationSlice.reducer,
},
middleware: [],
});
};
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@mui/x-date-pickers": "^7.0.0",
"@reduxjs/toolkit": "^1.9.7",
"@reduxjs/toolkit": "^2.0.0",
"axios": "^1.6.8",
"dayjs": "^1.11.10",
"lodash": "^4.17.21",
"lodash.camelcase": "^4.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.13",
"react-redux": "^8.1.3",
"react-redux": "^9.0.0",
"react-router-dom": "^6.22.3",
"typescript": "^5.4.2",
"vite": "^5.2.2",
Expand Down
89 changes: 46 additions & 43 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default defineConfig(({ command }) => {
host: '0.0.0.0',
port: 4321,
proxy: {
'/api/v1': 'http://localhost:4322',
'/api/v1': 'http://13.215.41.120:4321',
},
},
};
Expand Down

0 comments on commit a660144

Please sign in to comment.