Integrate React frontend for desktop app

* Added component files
    * Added dependencies and settings on package.json
    * Updated package-lock.json to match new dependencies
    * Added react scripts and config files
This commit is contained in:
Axel committed 2021-11-28 19:55:43 -03:00
1 parent b5d87dd1eb
commit 577fb7cfab
100 files changed
+45030 -422

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { createSlice } from '@reduxjs/toolkit'
export const ExampleSlice = createSlice({
name: 'example',
initialState: {
exampleName:'',
token:''
},
reducers: {
exampleAction: (state, action) => {
state.userName = action.payload;
},
},
})
// Action creators are generated for each case reducer function
export const { exampleAction } = ExampleSlice.actions
export default ExampleSlice.reducer