implement temporary ui and api routes to fix
Change-Id: Idb07d146f11d2f11f3ad2323a5c18fc125a91e73
diff --git a/client/redux/appSlice.ts b/client/redux/appSlice.ts
index f0fc628..e430aad 100644
--- a/client/redux/appSlice.ts
+++ b/client/redux/appSlice.ts
@@ -3,12 +3,12 @@
// Define a type for the slice state
interface appState {
- value: number;
+ accountId: string;
}
// Define the initial state using that type
const initialState: appState = {
- value: 0,
+ accountId: "",
};
export const appSlice = createSlice({
@@ -16,22 +16,15 @@
// `createSlice` will infer the state type from the `initialState` argument
initialState,
reducers: {
- increment: (state) => {
- state.value += 1;
- },
- decrement: (state) => {
- state.value -= 1;
- },
- // Use the PayloadAction type to declare the contents of `action.payload`
- incrementByAmount: (state, action: PayloadAction<number>) => {
- state.value += action.payload;
+ setAccountId: (state, action: PayloadAction<string>) => {
+ state.accountId = action.payload;
},
},
});
-export const { increment, decrement, incrementByAmount } = appSlice.actions;
+export const { setAccountId } = appSlice.actions;
// Other code such as selectors can use the imported `RootState` type
-export const selectCount = (state: RootState) => state.app.value;
+// export const selectCount = (state: RootState) => state.app.value;
export default appSlice.reducer;