mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
import { createSlice } from '@reduxjs/toolkit';
|
|
|
|
const initialState = null;
|
|
|
|
export const profileSlice = createSlice({
|
|
name: 'profile',
|
|
initialState: initialState,
|
|
reducers: {
|
|
setProfile: (state, action) => {
|
|
state = action.payload;
|
|
|
|
return state;
|
|
}
|
|
}
|
|
})
|
|
|
|
export const { setProfile } = profileSlice.actions;
|
|
|
|
export default profileSlice.reducer; |