Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18next/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,4 +534,4 @@
"errors": {
"userNotFound": "User not found"
}
}
}
2 changes: 1 addition & 1 deletion src/i18next/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@
"errors": {
"userNotFound": "User not found"
}
}
}
21 changes: 21 additions & 0 deletions src/store/features/realtokens/realtokensSlice.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useSelector } from 'react-redux'

Check warning on line 1 in src/store/features/realtokens/realtokensSlice.ts

View workflow job for this annotation

GitHub Actions / Validate branch

'useSelector' is defined but never used

Check warning on line 1 in src/store/features/realtokens/realtokensSlice.ts

View workflow job for this annotation

GitHub Actions / Validate merge request

'useSelector' is defined but never used

import { createAction, createReducer } from '@reduxjs/toolkit'

import { forEach } from 'lodash'
Expand Down Expand Up @@ -68,6 +70,25 @@
realtokensExtraDataLoadedDispatchType,
)

// DISPATCH TYPE
export const realtokensExtraDataChangedDispatchType =
'realtokens/realtokensExtraDataChanged'
export const realtokensExtraDataIsLoadingDispatchType =
'realtokens/realtokensExtraDataIsLoading'
export const realtokensExtraDataLoadedDispatchType =
'realtokens/realtokensExtraDataLoaded'

// ACTIONS
export const realtokensExtraDataChanged = createAction<RealToken[]>(
realtokensExtraDataChangedDispatchType,
)
export const realtokensExtraDataIsLoading = createAction<boolean>(
realtokensExtraDataIsLoadingDispatchType,
)
export const realtokensExtraDataLoaded = createAction<boolean>(
realtokensExtraDataLoadedDispatchType,
)

// THUNKS
export function fetchRealtokens() {
return async (dispatch: AppDispatch, getState: () => RootState) => {
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7408,6 +7408,16 @@ to-buffer@^1.2.0:
safe-buffer "^5.2.1"
typed-array-buffer "^1.0.3"

tiny-invariant@^1.1.0:
version "1.3.3"
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127"
integrity sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==

tiny-warning@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==

to-fast-properties@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
Expand Down
Loading