mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-31 13:46:23 +00:00
fix: add type to reducer action
This commit is contained in:
parent
28288dc02c
commit
dd944ad1f0
@ -1,4 +1,4 @@
|
||||
import { createSlice } from '@reduxjs/toolkit'
|
||||
import { PayloadAction, createSlice } from '@reduxjs/toolkit'
|
||||
|
||||
type DepositState = {
|
||||
isWalletConnected: boolean
|
||||
@ -12,7 +12,7 @@ const depositSlice = createSlice({
|
||||
name: 'deposit',
|
||||
initialState,
|
||||
reducers: {
|
||||
setIsWalletConnected: (state, action) => {
|
||||
setIsWalletConnected: (state, action: PayloadAction<boolean>) => {
|
||||
state.isWalletConnected = action.payload
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user