Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Feb 21, 2024
1 parent 91b1299 commit 2d40b02
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
2 changes: 2 additions & 0 deletions packages/apps-config/src/api/typesBundle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export const typesBundle = ${JSON.stringify(typesBundle, null, 2)} as unknown as
delete value.derives;

typesBundle.spec[k] = value;

expect(typesBundle.spec[k]).toEqual(value);
});
}
});
Expand Down
5 changes: 3 additions & 2 deletions packages/apps/public/locales/en/app-accounts.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@
"account restored": "account restored",
"account type": "account type",
"accounts": "accounts",
"accounts available via azero-wallet snap": "accounts available via azero-wallet snap",
"accounts available via browser extensions": "accounts available via browser extensions",
"accounts available via mobile devices": "accounts available via mobile devices",
"accounts available via azero-wallet snap": "accounts available via azero-wallet snap",
"accounts derived via development seeds": "accounts derived via development seeds",
"accounts managed via hardware devices": "accounts managed via hardware devices",
"added proxy": "added proxy",
Expand Down Expand Up @@ -291,7 +291,8 @@
"unbonding": "unbonding",
"upload signatories list": "upload signatories list",
"via qr": "via qr",
"via snap": "via snap",
"web": "web",
"your current password": "your current password",
"your new password": "your new password"
}
}
2 changes: 1 addition & 1 deletion packages/apps/public/locales/en/app-staking.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,4 @@
"{{currency}} slashed": "{{currency}} slashed",
"{{currency}} total": "{{currency}} total",
"{{days}} days": "{{days}} days"
}
}
2 changes: 1 addition & 1 deletion packages/apps/public/locales/en/react-signer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"sending from my account": "sending from my account",
"unlock account with password": "unlock account with password",
"unlock for {{expiry}} min": "unlock for {{expiry}} min"
}
}
5 changes: 4 additions & 1 deletion packages/apps/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"From JSON": "",
"From Ledger": "",
"From Qr": "",
"From Snap": "",
"Frozen": "",
"Full Legal Name": "",
"Future versions of the web-only interface will drop support for non-external accounts, much like the IPFS version.": "",
Expand Down Expand Up @@ -1123,6 +1124,7 @@
"account restored": "",
"account type": "",
"accounts": "",
"accounts available via azero-wallet snap": "",
"accounts available via browser extensions": "",
"accounts available via mobile devices": "",
"accounts derived via development seeds": "",
Expand Down Expand Up @@ -1835,6 +1837,7 @@
"via Treasury": "",
"via Vesting": "",
"via qr": "",
"via snap": "",
"vote": "",
"vote for candidate": "",
"vote for defender": "",
Expand Down Expand Up @@ -1896,4 +1899,4 @@
"{{value}}x voting balance, locked for {{duration}}x duration{{period}}": "",
"{{when}} (est.)": "",
"⚡️ Thunder Gateway": ""
}
}
6 changes: 5 additions & 1 deletion packages/page-accounts/src/Accounts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
[]
);

const connectSnapWithStatus = useCallback(
() => connectSnap(onStatusChange), [onStatusChange]
);

const canStoreAccounts = useMemo(
() => isElectron || (!isIpfs && settings.get().storage === 'on'),
[isElectron, isIpfs]
Expand Down Expand Up @@ -356,7 +360,7 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
<Button
icon='sign-in-alt'
label={t('From Snap')}
onClick={() => connectSnap(onStatusChange)}
onClick={connectSnapWithStatus}
/>
)}
<Button
Expand Down
2 changes: 1 addition & 1 deletion packages/react-signer/src/signers/MetaMaskSnapSigner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/react-signer authors & contributors
// Copyright 2017-2024 @polkadot/react-signer authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Signer, SignerResult } from '@polkadot/api/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/react-signer/src/snap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/react-signer authors & contributors
// Copyright 2017-2024 @polkadot/react-signer authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { ActionStatus } from '@polkadot/react-components/Status/types';
Expand Down

0 comments on commit 2d40b02

Please sign in to comment.