Skip to content

Commit

Permalink
redux action update: SET_LOGIN_TYPE [7:57]
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcollins3 authored May 26, 2023
1 parent 80d5118 commit a943e74
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/redux/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const SET_API_URL = async (url) => {
}
}

const SET_LOGIN_TYPE = async (loginmethod) => {
return {
type: "SET_LOGIN_TYPE",
payload: loginmethod
}
}

// settings: action.payload ? action.payload === false ? true : false : true

const slowpoke = () => {
Expand All @@ -44,7 +51,8 @@ const actionObject = {
setPokemon: setPokemon,
slowpoke: slowpoke,
GET_WATER_BOTTLE: GET_WATER_BOTTLE,
TOGGLE_SETTINGS: TOGGLE_SETTINGS
TOGGLE_SETTINGS: TOGGLE_SETTINGS,
SET_LOGIN_TYPE: SET_LOGIN_TYPE
}

export default actionObject

0 comments on commit a943e74

Please sign in to comment.