Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into WALLET-421-cw-brin…
Browse files Browse the repository at this point in the history
…gweb-3-integration
  • Loading branch information
Comp0te committed Dec 9, 2024
2 parents 369952c + 35b6c96 commit 170b036
Show file tree
Hide file tree
Showing 24 changed files with 585 additions and 365 deletions.
184 changes: 150 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/apps/connect-to-app/pages/switch-account/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function SwitchAccountContent({ requestId }: SwitchAccountContentProps) {
rows={connectedAccountsListItems}
renderRow={(account, index) => {
const csprName =
accountsInfo && accountsInfo[account.accountHash].csprName;
accountsInfo && accountsInfo[account.accountHash]?.csprName;

return (
<ListItemContainer key={account.name}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const UnconnectedAccountsList = ({
renderRow={(unconnectedAccount, index) => {
const csprName =
accountsInfo &&
accountsInfo[unconnectedAccount.accountHash].csprName;
accountsInfo[unconnectedAccount.accountHash]?.csprName;

return (
<ListItemContainer key={unconnectedAccount.name}>
Expand Down
10 changes: 7 additions & 3 deletions src/apps/import-account-with-file/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { QueryClientProvider } from '@tanstack/react-query';
import React, { Suspense, useState } from 'react';
import { createRoot } from 'react-dom/client';
import { Provider as ReduxProvider } from 'react-redux';
Expand All @@ -18,6 +19,7 @@ import { useSystemThemeDetector } from '@hooks/use-system-theme-detector';

import '@libs/i18n/i18n';
import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, darkTheme, lightTheme } from '@libs/ui';

import { AppRouter } from './app-router';
Expand Down Expand Up @@ -57,9 +59,11 @@ const Tree = () => {
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</Suspense>
Expand Down
12 changes: 6 additions & 6 deletions src/apps/popup/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export enum TimeoutDurationSetting {
}

export const MapTimeoutDurationSettingToValue = {
[TimeoutDurationSetting['1 min']]: 1,
[TimeoutDurationSetting['5 min']]: 5,
[TimeoutDurationSetting['15 min']]: 15,
[TimeoutDurationSetting['30 min']]: 30,
[TimeoutDurationSetting['1 hour']]: 60,
[TimeoutDurationSetting['24 hours']]: 60 * 24
[TimeoutDurationSetting['1 min']]: 1000 * 60 * 1,
[TimeoutDurationSetting['5 min']]: 1000 * 60 * 5,
[TimeoutDurationSetting['15 min']]: 1000 * 60 * 15,
[TimeoutDurationSetting['30 min']]: 1000 * 60 * 30,
[TimeoutDurationSetting['1 hour']]: 1000 * 60 * 60,
[TimeoutDurationSetting['24 hours']]: 1000 * 60 * 60 * 24
};

export const LOCK_VAULT_TIMEOUT = 1000 * 60 * 5;
Loading

0 comments on commit 170b036

Please sign in to comment.