Skip to content

Commit 9933578

Browse files
committed
chore: lint
1 parent 86000cd commit 9933578

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

apps/ledger-live-mobile/src/actions/settings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useSelector, useDispatch } from "~/context/hooks";
55
import type { PortfolioRange } from "@ledgerhq/types-live";
66
import { selectedTimeRangeSelector } from "../reducers/settings";
77
import {
8-
SettingsAcceptSwapProviderPayload,
98
SettingsBlacklistTokenPayload,
109
DangerouslyOverrideStatePayload,
1110
SettingsDismissBannerPayload,

apps/ledger-live-mobile/src/actions/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ export enum SettingsActionTypes {
285285
SETTINGS_SET_LANGUAGE = "SETTINGS_SET_LANGUAGE",
286286
SETTINGS_SET_LOCALE = "SETTINGS_SET_LOCALE",
287287
SETTINGS_SET_DATE_FORMAT = "SETTINGS_SET_DATE_FORMAT",
288-
ACCEPT_SWAP_PROVIDER = "ACCEPT_SWAP_PROVIDER",
289288
LAST_SEEN_DEVICE_INFO = "LAST_SEEN_DEVICE_INFO",
290289
LAST_SEEN_DEVICE_LANGUAGE_ID = "LAST_SEEN_DEVICE_LANGUAGE_ID",
291290
SET_KNOWN_DEVICE_MODEL_IDS = "SET_KNOWN_DEVICE_MODEL_IDS",

apps/ledger-live-mobile/src/reducers/settings.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import type { CurrencySettings, SettingsState, State, Theme } from "./types";
1515
import { currencySettingsDefaults } from "../helpers/CurrencySettingsDefaults";
1616
import { getDefaultLanguageLocale, getDefaultLocale } from "../languages";
1717
import type {
18-
SettingsAcceptSwapProviderPayload,
1918
SettingsBlacklistTokenPayload,
2019
SettingsDismissBannerPayload,
2120
SettingsHideEmptyTokenAccountsPayload,
@@ -406,19 +405,6 @@ const handlers: ReducerMap<SettingsState, SettingsPayload> = {
406405
locale: (action as Action<SettingsSetLocalePayload>).payload,
407406
}),
408407

409-
[SettingsActionTypes.ACCEPT_SWAP_PROVIDER]: (state, action) => ({
410-
...state,
411-
swap: {
412-
...state.swap,
413-
acceptedProviders: [
414-
...new Set([
415-
...(state.swap?.acceptedProviders || []),
416-
(action as Action<SettingsAcceptSwapProviderPayload>).payload,
417-
]),
418-
],
419-
},
420-
}),
421-
422408
[SettingsActionTypes.LAST_SEEN_DEVICE_INFO]: (state, action) => {
423409
const { payload } = action as Action<SettingsLastSeenDeviceInfoPayload>;
424410
return {

0 commit comments

Comments
 (0)