Skip to content

Commit 6d6a1ff

Browse files
committed
fix: linting
1 parent 806e448 commit 6d6a1ff

File tree

5 files changed

+28
-32
lines changed

5 files changed

+28
-32
lines changed

apps/browser-extension-wallet/src/hooks/__tests__/useWalletManager.test.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@ jest.mock('@providers/AnalyticsProvider/getUserIdService', () => {
118118

119119
const getWrapper =
120120
({ backgroundService }: { backgroundService?: BackgroundServiceAPIProviderProps['value'] }) =>
121-
({ children }: { children: React.ReactNode }) => (
122-
<AppSettingsProvider>
123-
<DatabaseProvider>
124-
<BackgroundServiceAPIProvider value={backgroundService}>{children}</BackgroundServiceAPIProvider>
125-
</DatabaseProvider>
126-
</AppSettingsProvider>
127-
);
121+
({ children }: { children: React.ReactNode }) =>
122+
(
123+
<AppSettingsProvider>
124+
<DatabaseProvider>
125+
<BackgroundServiceAPIProvider value={backgroundService}>{children}</BackgroundServiceAPIProvider>
126+
</DatabaseProvider>
127+
</AppSettingsProvider>
128+
);
128129

129130
const render = () =>
130131
renderHook(() => useWalletManager(), {

apps/browser-extension-wallet/src/lib/scripts/types/feature-flags.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type FeatureFlagCustomPayloads = {
4545

4646
export type FeatureFlagPayloads = {
4747
[key in FeatureFlag]: FeatureFlagPayload;
48-
} & FeatureFlagCustomPayloads;
48+
} &
49+
FeatureFlagCustomPayloads;
4950

5051
export type RawFeatureFlagPayloads = Record<ExperimentName, JsonType>;

apps/browser-extension-wallet/src/utils/assets-transformers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const cardanoTransformer = (params: {
3232
balance.fiatBalance === '-'
3333
? balance.fiatBalance
3434
: isNumeric(balance.fiatBalance)
35-
? `${formatLocaleNumber(balance.fiatBalance)} ${fiatCode}`
36-
: '-';
35+
? `${formatLocaleNumber(balance.fiatBalance)} ${fiatCode}`
36+
: '-';
3737

3838
return {
3939
id: cardanoCoin.id,

apps/browser-extension-wallet/src/views/bitcoin-mode/features/activity/components/Activity.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,14 @@ export const Activity = (): React.ReactElement => {
128128

129129
const walletAddress = addresses[0].address;
130130

131-
const groups = [...recentTransactions, ...pendingTransaction].reduce(
132-
(acc, transaction) => {
133-
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
134-
if (!acc[dateKey]) {
135-
acc[dateKey] = [];
136-
}
137-
acc[dateKey].push(transaction);
138-
return acc;
139-
},
140-
{} as { [date: string]: Bitcoin.TransactionHistoryEntry[] }
141-
);
131+
const groups = [...recentTransactions, ...pendingTransaction].reduce((acc, transaction) => {
132+
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
133+
if (!acc[dateKey]) {
134+
acc[dateKey] = [];
135+
}
136+
acc[dateKey].push(transaction);
137+
return acc;
138+
}, {} as { [date: string]: Bitcoin.TransactionHistoryEntry[] });
142139

143140
const sortedDates = Object.keys(groups).sort((a, b) => {
144141
if (a === 'Pending') return -1;

apps/browser-extension-wallet/src/views/bitcoin-mode/features/activity/components/ActivityLayout.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,14 @@ export const ActivityLayout = (): React.ReactElement => {
121121

122122
const walletAddress = addresses[0].address;
123123

124-
const groups = [...recentTransactions, ...pendingTransaction].reduce(
125-
(acc, transaction) => {
126-
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
127-
if (!acc[dateKey]) {
128-
acc[dateKey] = [];
129-
}
130-
acc[dateKey].push(transaction);
131-
return acc;
132-
},
133-
{} as { [date: string]: Bitcoin.TransactionHistoryEntry[] }
134-
);
124+
const groups = [...recentTransactions, ...pendingTransaction].reduce((acc, transaction) => {
125+
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
126+
if (!acc[dateKey]) {
127+
acc[dateKey] = [];
128+
}
129+
acc[dateKey].push(transaction);
130+
return acc;
131+
}, {} as { [date: string]: Bitcoin.TransactionHistoryEntry[] });
135132

136133
const sortedDates = Object.keys(groups).sort((a, b) => {
137134
if (a === 'Pending') return -1;

0 commit comments

Comments
 (0)