diff --git a/src/i18next/locales/en/common.json b/src/i18next/locales/en/common.json index 7060358..089f7c0 100644 --- a/src/i18next/locales/en/common.json +++ b/src/i18next/locales/en/common.json @@ -534,4 +534,4 @@ "errors": { "userNotFound": "User not found" } -} +} \ No newline at end of file diff --git a/src/i18next/locales/fr/common.json b/src/i18next/locales/fr/common.json index 5dae0dc..bf48dcf 100644 --- a/src/i18next/locales/fr/common.json +++ b/src/i18next/locales/fr/common.json @@ -535,4 +535,4 @@ "errors": { "userNotFound": "User not found" } -} +} \ No newline at end of file diff --git a/src/store/features/realtokens/realtokensSlice.ts b/src/store/features/realtokens/realtokensSlice.ts index 924dc1d..f6a86cf 100644 --- a/src/store/features/realtokens/realtokensSlice.ts +++ b/src/store/features/realtokens/realtokensSlice.ts @@ -1,3 +1,5 @@ +import { useSelector } from 'react-redux' + import { createAction, createReducer } from '@reduxjs/toolkit' import { forEach } from 'lodash' @@ -68,6 +70,25 @@ export const realtokensExtraDataLoaded = createAction( realtokensExtraDataLoadedDispatchType, ) +// DISPATCH TYPE +export const realtokensExtraDataChangedDispatchType = + 'realtokens/realtokensExtraDataChanged' +export const realtokensExtraDataIsLoadingDispatchType = + 'realtokens/realtokensExtraDataIsLoading' +export const realtokensExtraDataLoadedDispatchType = + 'realtokens/realtokensExtraDataLoaded' + +// ACTIONS +export const realtokensExtraDataChanged = createAction( + realtokensExtraDataChangedDispatchType, +) +export const realtokensExtraDataIsLoading = createAction( + realtokensExtraDataIsLoadingDispatchType, +) +export const realtokensExtraDataLoaded = createAction( + realtokensExtraDataLoadedDispatchType, +) + // THUNKS export function fetchRealtokens() { return async (dispatch: AppDispatch, getState: () => RootState) => { diff --git a/yarn.lock b/yarn.lock index 88c06e4..96186cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"