feature: add projects page (2 parts works)

This commit is contained in:
Daniil
2026-01-29 00:57:22 +03:00
parent 3dfb9453ec
commit 2e4820ac91
65 changed files with 2223 additions and 45 deletions
+25
View File
@@ -0,0 +1,25 @@
import type { PayloadAction } from "@reduxjs/toolkit"
import { createSlice } from "@reduxjs/toolkit"
import { AppState } from "./types"
const initialState: AppState = {
currentScreenName: "",
}
const appStateSlice = createSlice({
name: "appState",
initialState,
reducers: {
setCurrentScreenName(state, action: PayloadAction<string>) {
state.currentScreenName = action.payload
},
resetAppState(state) {
state.currentScreenName = initialState.currentScreenName
},
},
})
export const { resetAppState, setCurrentScreenName } = appStateSlice.actions
export const appStateReducer = appStateSlice.reducer