- 在布局中新增挑战页面的导航 - 在首页中添加挑战计划卡片,支持用户点击跳转 - 更新登录页面的标题样式,调整字体粗细 - 集成 Redux 状态管理,新增挑战相关的 reducer
17 lines
404 B
TypeScript
17 lines
404 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import challengeReducer from './challengeSlice';
|
|
import userReducer from './userSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
user: userReducer,
|
|
challenge: challengeReducer,
|
|
},
|
|
// React Native 环境默认即可
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|
|
|