@@ -2,16 +2,16 @@ import React, { memo, ReactElement, useCallback, useMemo } from 'react';
22import { useTranslation } from 'react-i18next' ;
33import { useAppDispatch , useAppSelector } from '../../../hooks/redux' ;
44
5+ import { ECoinSelectPreference } from 'beignet' ;
56import { EItemType , IListData } from '../../../components/List' ;
6- import { updateSettings } from '../../../store/slices/settings' ;
77import {
88 coinSelectAutoSelector ,
99 coinSelectPreferenceSelector ,
1010} from '../../../store/reselect/settings' ;
11- import { ECoinSelectPreference } from "beignet" ;
12- import { updateCoinSelectPreference } from "../../../utils/settings" ;
11+ import { updateSettings } from '../../../store/slices/settings' ;
12+ import { updateCoinSelectPreference } from '../../../utils/settings' ;
13+ import { getOnChainWalletAsync } from '../../../utils/wallet' ;
1314import SettingsView from '../SettingsView' ;
14- import { getOnChainWalletAsync } from "../../../utils/wallet" ;
1515
1616const CoinSelectSettings = ( ) : ReactElement => {
1717 const { t } = useTranslation ( 'settings' ) ;
@@ -32,7 +32,9 @@ const CoinSelectSettings = (): ReactElement => {
3232 // Update the coin selection preference in beignet.
3333 const wallet = await getOnChainWalletAsync ( ) ;
3434 // Set beignet to consolidate if manual coin control is enabled in Bitkit.
35- wallet . updateCoinSelectPreference ( ECoinSelectPreference . consolidate ) ;
35+ wallet . updateCoinSelectPreference (
36+ ECoinSelectPreference . consolidate ,
37+ ) ;
3638 dispatch ( updateSettings ( { coinSelectAuto : false } ) ) ;
3739 } ,
3840 } ,
@@ -85,7 +87,8 @@ const CoinSelectSettings = (): ReactElement => {
8587 {
8688 title : t ( 'adv.cs_first_in_first_out' ) ,
8789 description : t ( 'adv.cs_first_in_first_out_description' ) ,
88- value : coinSelectPreference === ECoinSelectPreference . firstInFirstOut ,
90+ value :
91+ coinSelectPreference === ECoinSelectPreference . firstInFirstOut ,
8992 type : EItemType . button ,
9093 hide : ! selectedAutoPilot ,
9194 onPress : ( ) : void => {
@@ -95,7 +98,8 @@ const CoinSelectSettings = (): ReactElement => {
9598 {
9699 title : t ( 'adv.cs_last_in_last_out' ) ,
97100 description : t ( 'adv.cs_last_in_last_out_description' ) ,
98- value : coinSelectPreference === ECoinSelectPreference . lastInFirstOut ,
101+ value :
102+ coinSelectPreference === ECoinSelectPreference . lastInFirstOut ,
99103 type : EItemType . button ,
100104 hide : ! selectedAutoPilot ,
101105 onPress : ( ) : void => {
0 commit comments