(value);
diff --git a/apps/token/src/hooks/use-refresh-associated-balances.ts b/apps/token/src/hooks/use-refresh-associated-balances.ts
index 3e4498acb..5d822225a 100644
--- a/apps/token/src/hooks/use-refresh-associated-balances.ts
+++ b/apps/token/src/hooks/use-refresh-associated-balances.ts
@@ -1,10 +1,10 @@
-import React from "react";
+import React from 'react';
import {
AppStateActionType,
useAppState,
-} from "../contexts/app-state/app-state-context";
-import { useContracts } from "../contexts/contracts/contracts-context";
+} from '../contexts/app-state/app-state-context';
+import { useContracts } from '../contexts/contracts/contracts-context';
export function useRefreshAssociatedBalances() {
const { appDispatch } = useAppState();
diff --git a/apps/token/src/lib/bignumber.ts b/apps/token/src/lib/bignumber.ts
index 428bc9540..0c2621254 100644
--- a/apps/token/src/lib/bignumber.ts
+++ b/apps/token/src/lib/bignumber.ts
@@ -1,4 +1,4 @@
-import BigNumber from "bignumber.js";
+import BigNumber from 'bignumber.js';
BigNumber.config({ EXPONENTIAL_AT: 20000 });
diff --git a/apps/token/src/lib/date-formats.ts b/apps/token/src/lib/date-formats.ts
index 5bbd5a359..79bb9fe9e 100644
--- a/apps/token/src/lib/date-formats.ts
+++ b/apps/token/src/lib/date-formats.ts
@@ -1,2 +1,2 @@
-export const DATE_FORMAT_DETAILED = "dd MMMM yyyy HH:mm";
-export const DATE_FORMAT_LONG = "dd MMM yyyy";
+export const DATE_FORMAT_DETAILED = 'dd MMMM yyyy HH:mm';
+export const DATE_FORMAT_LONG = 'dd MMM yyyy';
diff --git a/apps/token/src/lib/decimals.test.ts b/apps/token/src/lib/decimals.test.ts
index 3b41873af..7c2dfad72 100644
--- a/apps/token/src/lib/decimals.test.ts
+++ b/apps/token/src/lib/decimals.test.ts
@@ -1,20 +1,25 @@
-import { BigNumber } from "./bignumber";
-import {addDecimal, removeDecimal} from "./decimals";
+import { BigNumber } from './bignumber';
+import { addDecimal, removeDecimal } from './decimals';
test('Do not pad numbers with 0s when the number length is less than the specified DPs', () => {
- expect(addDecimal(new BigNumber(10000), 10)).toEqual("0.000001");
-})
+ expect(addDecimal(new BigNumber(10000), 10)).toEqual('0.000001');
+});
test('Handles large numbers correctly', () => {
- const claimCode = new BigNumber("20000000000000000000000000")
- const decimals = 18
+ const claimCode = new BigNumber('20000000000000000000000000');
+ const decimals = 18;
- const decimalised = addDecimal(claimCode, decimals)
- expect(decimalised.toString()).toEqual("20000000");
+ const decimalised = addDecimal(claimCode, decimals);
+ expect(decimalised.toString()).toEqual('20000000');
- const undecimalised = removeDecimal(claimCode, decimals)
- expect(undecimalised.toString()).toEqual("20000000000000000000000000000000000000000000");
+ const undecimalised = removeDecimal(claimCode, decimals);
+ expect(undecimalised.toString()).toEqual(
+ '20000000000000000000000000000000000000000000'
+ );
- const mangled = removeDecimal(new BigNumber(addDecimal(claimCode, decimals)), decimals)
- expect(mangled.toString()).toEqual("20000000000000000000000000")
-})
+ const mangled = removeDecimal(
+ new BigNumber(addDecimal(claimCode, decimals)),
+ decimals
+ );
+ expect(mangled.toString()).toEqual('20000000000000000000000000');
+});
diff --git a/apps/token/src/lib/sig-to-id.test.ts b/apps/token/src/lib/sig-to-id.test.ts
index a8750115a..07f771740 100644
--- a/apps/token/src/lib/sig-to-id.test.ts
+++ b/apps/token/src/lib/sig-to-id.test.ts
@@ -1,9 +1,9 @@
-import { sigToId } from "./sig-to-id";
+import { sigToId } from './sig-to-id';
-test("creating an id from a signature", () => {
+test('creating an id from a signature', () => {
const sig =
- "3594b7f4e1c078aaa65b3efac57e1436da64d60c2961bf432dc62daa36f8b0b2602ed9c990ee46dd8ab5181e19c19b06587f080d22fc4543c1869970e678f20f";
+ '3594b7f4e1c078aaa65b3efac57e1436da64d60c2961bf432dc62daa36f8b0b2602ed9c990ee46dd8ab5181e19c19b06587f080d22fc4543c1869970e678f20f';
const expected =
- "9ebd2c424a9426bf5f38112878eb2f99bfdf5ec17b5782b944e6be8177084327";
+ '9ebd2c424a9426bf5f38112878eb2f99bfdf5ec17b5782b944e6be8177084327';
expect(sigToId(sig)).toEqual(expected);
});
diff --git a/apps/token/src/lib/sig-to-id.ts b/apps/token/src/lib/sig-to-id.ts
index 3bd99fe8d..3bcd97fee 100644
--- a/apps/token/src/lib/sig-to-id.ts
+++ b/apps/token/src/lib/sig-to-id.ts
@@ -1,10 +1,10 @@
-import { ethers } from "ethers";
-import { SHA3 } from "sha3";
+import { ethers } from 'ethers';
+import { SHA3 } from 'sha3';
export const sigToId = (sig: string) => {
// Prepend 0x
- if (sig.slice(0, 2) !== "0x") {
- sig = "0x" + sig;
+ if (sig.slice(0, 2) !== '0x') {
+ sig = '0x' + sig;
}
// Create the ID
diff --git a/apps/token/src/lib/truncate-middle.ts b/apps/token/src/lib/truncate-middle.ts
index 4ce8d3f4a..240e97b54 100644
--- a/apps/token/src/lib/truncate-middle.ts
+++ b/apps/token/src/lib/truncate-middle.ts
@@ -1,7 +1,7 @@
export function truncateMiddle(address: string) {
return (
address.slice(0, 6) +
- "\u2026" +
+ '\u2026' +
address.slice(address.length - 4, address.length)
);
}
diff --git a/apps/token/src/lib/web3-utils.ts b/apps/token/src/lib/web3-utils.ts
index 373c13a6c..ae9af3179 100644
--- a/apps/token/src/lib/web3-utils.ts
+++ b/apps/token/src/lib/web3-utils.ts
@@ -17,7 +17,7 @@ const IgnoreCodes = {
* and thus not capture in Sentry
*/
export const isUnexpectedError = (error: Error | TxError) => {
- if ("code" in error && Object.values(IgnoreCodes).includes(error.code)) {
+ if ('code' in error && Object.values(IgnoreCodes).includes(error.code)) {
return false;
}
return true;
@@ -28,7 +28,7 @@ export const isUnexpectedError = (error: Error | TxError) => {
* a transaction confirmation prompt
*/
export const isUserRejection = (error: Error | TxError) => {
- if ("code" in error && error.code === IgnoreCodes.USER_REJECTED) {
+ if ('code' in error && error.code === IgnoreCodes.USER_REJECTED) {
return true;
}
return false;
@@ -39,7 +39,7 @@ export const isUserRejection = (error: Error | TxError) => {
* a transaction confirmation prompt
*/
export const isAlreadyProcessing = (error: Error | TxError) => {
- if ("code" in error && error.code === IgnoreCodes.ALREADY_PROCESSING) {
+ if ('code' in error && error.code === IgnoreCodes.ALREADY_PROCESSING) {
return true;
}
return false;
diff --git a/apps/token/src/routes/claim/claim-error.tsx b/apps/token/src/routes/claim/claim-error.tsx
index 202265be6..50dbd84b2 100644
--- a/apps/token/src/routes/claim/claim-error.tsx
+++ b/apps/token/src/routes/claim/claim-error.tsx
@@ -1,12 +1,16 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
+import React from 'react';
+import { useTranslation } from 'react-i18next';
export const ClaimError = () => {
- const { t } = useTranslation()
+ const { t } = useTranslation();
return (
- {t("Something doesn't look right")}
- {t("If you have been given a link please double check and try again")}
+
+ {t("Something doesn't look right")}
+
+
+ {t('If you have been given a link please double check and try again')}
+
);
};
diff --git a/apps/token/src/routes/claim/claim-form/index.ts b/apps/token/src/routes/claim/claim-form/index.ts
index 84eeceee7..b6c442c84 100644
--- a/apps/token/src/routes/claim/claim-form/index.ts
+++ b/apps/token/src/routes/claim/claim-form/index.ts
@@ -1 +1 @@
-export * from "./claim-form";
+export * from './claim-form';
diff --git a/apps/token/src/routes/claim/claim-restricted.tsx b/apps/token/src/routes/claim/claim-restricted.tsx
index df7efeda0..6b51ea2ff 100644
--- a/apps/token/src/routes/claim/claim-restricted.tsx
+++ b/apps/token/src/routes/claim/claim-restricted.tsx
@@ -1,11 +1,11 @@
-import { useTranslation } from "react-i18next";
+import { useTranslation } from 'react-i18next';
export const ClaimRestricted = () => {
const { t } = useTranslation();
return (
- {t("Service unavailable")}
- {t("This service is not available in your country")}
+ {t('Service unavailable')}
+ {t('This service is not available in your country')}
);
};
diff --git a/apps/token/src/routes/claim/claim-step-1/index.ts b/apps/token/src/routes/claim/claim-step-1/index.ts
index 51dded8f5..980375cc6 100644
--- a/apps/token/src/routes/claim/claim-step-1/index.ts
+++ b/apps/token/src/routes/claim/claim-step-1/index.ts
@@ -1 +1 @@
-export { ClaimStep1 } from "./claim-step-1";
+export { ClaimStep1 } from './claim-step-1';
diff --git a/apps/token/src/routes/claim/claim-step-2/index.ts b/apps/token/src/routes/claim/claim-step-2/index.ts
index eab2e3a72..028216da3 100644
--- a/apps/token/src/routes/claim/claim-step-2/index.ts
+++ b/apps/token/src/routes/claim/claim-step-2/index.ts
@@ -1 +1 @@
-export { ClaimStep2 } from "./claim-step-2";
+export { ClaimStep2 } from './claim-step-2';
diff --git a/apps/token/src/routes/claim/lib/is-restricted.test.ts b/apps/token/src/routes/claim/lib/is-restricted.test.ts
index 108888248..65db25658 100644
--- a/apps/token/src/routes/claim/lib/is-restricted.test.ts
+++ b/apps/token/src/routes/claim/lib/is-restricted.test.ts
@@ -1,29 +1,29 @@
-import { isRestricted } from "./is-restricted";
+import { isRestricted } from './is-restricted';
afterEach(() => {
- document.cookie = "";
-})
+ document.cookie = '';
+});
-test("Returns false on no cookie", () => {
- expect(isRestricted()).toEqual(false);
-})
+test('Returns false on no cookie', () => {
+ expect(isRestricted()).toEqual(false);
+});
-test("Returns false on no restricted cookie", () => {
- document.cookie = "one=a;two=b"
- expect(isRestricted()).toEqual(false);
-})
+test('Returns false on no restricted cookie', () => {
+ document.cookie = 'one=a;two=b';
+ expect(isRestricted()).toEqual(false);
+});
-test("Returns true if a cookie called restricted is set but false", () => {
- document.cookie = "restricted=false"
- expect(isRestricted()).toEqual(false);
-})
+test('Returns true if a cookie called restricted is set but false', () => {
+ document.cookie = 'restricted=false';
+ expect(isRestricted()).toEqual(false);
+});
-test("Returns true if a cookie called restricted is set and true", () => {
- document.cookie = "restricted=true"
- expect(isRestricted()).toEqual(true);
-})
+test('Returns true if a cookie called restricted is set and true', () => {
+ document.cookie = 'restricted=true';
+ expect(isRestricted()).toEqual(true);
+});
-test("Handle weird data", () => {
- document.cookie = ";🍪;;;;;🍪=🍪;;;;;;;;;🍪"
- expect(isRestricted()).toEqual(true);
-})
+test('Handle weird data', () => {
+ document.cookie = ';🍪;;;;;🍪=🍪;;;;;;;;;🍪';
+ expect(isRestricted()).toEqual(true);
+});
diff --git a/apps/token/src/routes/claim/target-address-mismatch.tsx b/apps/token/src/routes/claim/target-address-mismatch.tsx
index ad7d4defb..7fe423834 100644
--- a/apps/token/src/routes/claim/target-address-mismatch.tsx
+++ b/apps/token/src/routes/claim/target-address-mismatch.tsx
@@ -1,6 +1,6 @@
-import { Trans, useTranslation } from "react-i18next";
+import { Trans, useTranslation } from 'react-i18next';
-import { Colors } from "../../config/colors";
+import { Colors } from '../../config/colors';
interface TargetAddressMismatchProps {
connectedAddress: string;
@@ -15,7 +15,7 @@ export const TargetAddressMismatch = ({
return (
<>
- {t("connectedAddress", {
+ {t('connectedAddress', {
address: connectedAddress,
})}
diff --git a/apps/token/src/routes/claim/targeted-claim/index.ts b/apps/token/src/routes/claim/targeted-claim/index.ts
index d13d16ab8..ab2709188 100644
--- a/apps/token/src/routes/claim/targeted-claim/index.ts
+++ b/apps/token/src/routes/claim/targeted-claim/index.ts
@@ -1 +1 @@
-export { TargetedClaim } from "./targeted-claim";
+export { TargetedClaim } from './targeted-claim';
diff --git a/apps/token/src/routes/claim/untargeted-claim/index.ts b/apps/token/src/routes/claim/untargeted-claim/index.ts
index 431fda6e0..ae1568a9c 100644
--- a/apps/token/src/routes/claim/untargeted-claim/index.ts
+++ b/apps/token/src/routes/claim/untargeted-claim/index.ts
@@ -1 +1 @@
-export { UntargetedClaim } from "./untargeted-claim";
+export { UntargetedClaim } from './untargeted-claim';
diff --git a/apps/token/src/routes/claim/verifying.tsx b/apps/token/src/routes/claim/verifying.tsx
index 381035a25..e53165c32 100644
--- a/apps/token/src/routes/claim/verifying.tsx
+++ b/apps/token/src/routes/claim/verifying.tsx
@@ -1,6 +1,6 @@
-import { useTranslation } from "react-i18next";
+import { useTranslation } from 'react-i18next';
-import { SplashLoader } from "../../components/splash-loader";
+import { SplashLoader } from '../../components/splash-loader';
export const Verifying = () => {
const { t } = useTranslation();
@@ -8,12 +8,12 @@ export const Verifying = () => {
-
+
);
};
diff --git a/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.scss b/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.scss
index 8bf66100e..57b07e7a3 100644
--- a/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.scss
+++ b/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.scss
@@ -1,4 +1,4 @@
-@import "../../../../styles/colors";
+@import '../../../../styles/colors';
.current-proposal-state {
&__pass {
diff --git a/apps/token/src/routes/governance/components/current-proposal-state/index.tsx b/apps/token/src/routes/governance/components/current-proposal-state/index.tsx
index efbbd8a92..6e8b83f78 100644
--- a/apps/token/src/routes/governance/components/current-proposal-state/index.tsx
+++ b/apps/token/src/routes/governance/components/current-proposal-state/index.tsx
@@ -1 +1 @@
-export { CurrentProposalState } from "./current-proposal-state";
+export { CurrentProposalState } from './current-proposal-state';
diff --git a/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.scss b/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.scss
index 400e77840..b83588fab 100644
--- a/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.scss
+++ b/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.scss
@@ -1,4 +1,4 @@
-@import "../../../../styles/colors";
+@import '../../../../styles/colors';
.current-proposal-status {
&__pass {
diff --git a/apps/token/src/routes/governance/components/current-proposal-status/index.tsx b/apps/token/src/routes/governance/components/current-proposal-status/index.tsx
index b55b4b01a..a269b2cdd 100644
--- a/apps/token/src/routes/governance/components/current-proposal-status/index.tsx
+++ b/apps/token/src/routes/governance/components/current-proposal-status/index.tsx
@@ -1 +1 @@
-export { CurrentProposalStatus } from "./current-proposal-status";
+export { CurrentProposalStatus } from './current-proposal-status';
diff --git a/apps/token/src/routes/governance/components/proposal-change-table/index.tsx b/apps/token/src/routes/governance/components/proposal-change-table/index.tsx
index 128de1e89..5b7c1ee9b 100644
--- a/apps/token/src/routes/governance/components/proposal-change-table/index.tsx
+++ b/apps/token/src/routes/governance/components/proposal-change-table/index.tsx
@@ -1 +1 @@
-export { ProposalChangeTable } from "./proposal-change-table";
+export { ProposalChangeTable } from './proposal-change-table';
diff --git a/apps/token/src/routes/governance/components/proposal-terms-json/index.tsx b/apps/token/src/routes/governance/components/proposal-terms-json/index.tsx
index df41ce00d..21132cf15 100644
--- a/apps/token/src/routes/governance/components/proposal-terms-json/index.tsx
+++ b/apps/token/src/routes/governance/components/proposal-terms-json/index.tsx
@@ -1 +1 @@
-export { ProposalTermsJson } from "./proposal-terms-json";
+export { ProposalTermsJson } from './proposal-terms-json';
diff --git a/apps/token/src/routes/governance/components/proposal-votes-table/index.tsx b/apps/token/src/routes/governance/components/proposal-votes-table/index.tsx
index fc179758f..cdae0a4e4 100644
--- a/apps/token/src/routes/governance/components/proposal-votes-table/index.tsx
+++ b/apps/token/src/routes/governance/components/proposal-votes-table/index.tsx
@@ -1 +1 @@
-export { ProposalVotesTable } from "./proposal-votes-table";
+export { ProposalVotesTable } from './proposal-votes-table';
diff --git a/apps/token/src/routes/governance/components/proposal/index.tsx b/apps/token/src/routes/governance/components/proposal/index.tsx
index 610dabad5..2381d6436 100644
--- a/apps/token/src/routes/governance/components/proposal/index.tsx
+++ b/apps/token/src/routes/governance/components/proposal/index.tsx
@@ -1 +1 @@
-export { Proposal } from "./proposal";
+export { Proposal } from './proposal';
diff --git a/apps/token/src/routes/governance/components/proposals-list/index.tsx b/apps/token/src/routes/governance/components/proposals-list/index.tsx
index b688af01c..6ffa0c831 100644
--- a/apps/token/src/routes/governance/components/proposals-list/index.tsx
+++ b/apps/token/src/routes/governance/components/proposals-list/index.tsx
@@ -1 +1 @@
-export { ProposalsList } from "./proposals-list";
+export { ProposalsList } from './proposals-list';
diff --git a/apps/token/src/routes/governance/components/vote-details/index.tsx b/apps/token/src/routes/governance/components/vote-details/index.tsx
index 02c501994..ffda2d552 100644
--- a/apps/token/src/routes/governance/components/vote-details/index.tsx
+++ b/apps/token/src/routes/governance/components/vote-details/index.tsx
@@ -1,2 +1,2 @@
-export { VoteDetails } from "./vote-details";
-export { VOTE_VALUE_MAP } from "./vote-types";
+export { VoteDetails } from './vote-details';
+export { VOTE_VALUE_MAP } from './vote-types';
diff --git a/apps/token/src/routes/governance/components/vote-details/vote-buttons.scss b/apps/token/src/routes/governance/components/vote-details/vote-buttons.scss
index b054dec23..8d1225c87 100644
--- a/apps/token/src/routes/governance/components/vote-details/vote-buttons.scss
+++ b/apps/token/src/routes/governance/components/vote-details/vote-buttons.scss
@@ -1,4 +1,4 @@
-@import "../../../../styles/colors";
+@import '../../../../styles/colors';
.vote-buttons {
&__button-container {
diff --git a/apps/token/src/routes/governance/components/vote-details/vote-details.scss b/apps/token/src/routes/governance/components/vote-details/vote-details.scss
index ca2054d0c..6ea7749ca 100644
--- a/apps/token/src/routes/governance/components/vote-details/vote-details.scss
+++ b/apps/token/src/routes/governance/components/vote-details/vote-details.scss
@@ -1,4 +1,4 @@
-@import "../../../../styles/colors";
+@import '../../../../styles/colors';
.vote-details {
&__vote-buttons {
diff --git a/apps/token/src/routes/governance/components/vote-details/vote-progress.scss b/apps/token/src/routes/governance/components/vote-details/vote-progress.scss
index 816df3d69..a62c38c04 100644
--- a/apps/token/src/routes/governance/components/vote-details/vote-progress.scss
+++ b/apps/token/src/routes/governance/components/vote-details/vote-progress.scss
@@ -1,4 +1,4 @@
-@import "../../../../styles/colors";
+@import '../../../../styles/colors';
.vote-progress {
&__indicator {
diff --git a/apps/token/src/routes/governance/components/vote-details/vote-types.ts b/apps/token/src/routes/governance/components/vote-details/vote-types.ts
index 803ed453d..48b920a80 100644
--- a/apps/token/src/routes/governance/components/vote-details/vote-types.ts
+++ b/apps/token/src/routes/governance/components/vote-details/vote-types.ts
@@ -1,6 +1,6 @@
-import { VoteValue } from "../../../../__generated__/globalTypes";
+import { VoteValue } from '../../../../__generated__/globalTypes';
export const VOTE_VALUE_MAP = {
- [VoteValue.Yes]: "VALUE_YES",
- [VoteValue.No]: "VALUE_NO",
+ [VoteValue.Yes]: 'VALUE_YES',
+ [VoteValue.No]: 'VALUE_NO',
} as const;
diff --git a/apps/token/src/routes/governance/hooks/index.tsx b/apps/token/src/routes/governance/hooks/index.tsx
index e4953ab1f..bbb8abd8b 100644
--- a/apps/token/src/routes/governance/hooks/index.tsx
+++ b/apps/token/src/routes/governance/hooks/index.tsx
@@ -1 +1 @@
-export { useVoteInformation } from "./use-vote-information";
+export { useVoteInformation } from './use-vote-information';
diff --git a/apps/token/src/routes/governance/proposal-fragment.ts b/apps/token/src/routes/governance/proposal-fragment.ts
index f6e31beda..0a5eb29da 100644
--- a/apps/token/src/routes/governance/proposal-fragment.ts
+++ b/apps/token/src/routes/governance/proposal-fragment.ts
@@ -1,4 +1,4 @@
-import { gql } from "@apollo/client";
+import { gql } from '@apollo/client';
export const PROPOSALS_FRAGMENT = gql`
fragment ProposalFields on Proposal {
diff --git a/apps/token/src/routes/governance/proposal/index.tsx b/apps/token/src/routes/governance/proposal/index.tsx
index 2f7c82da2..f569e4d04 100644
--- a/apps/token/src/routes/governance/proposal/index.tsx
+++ b/apps/token/src/routes/governance/proposal/index.tsx
@@ -1 +1 @@
-export { ProposalContainer, PROPOSAL_QUERY } from "./proposal-container";
+export { ProposalContainer, PROPOSAL_QUERY } from './proposal-container';
diff --git a/apps/token/src/routes/governance/proposals/index.tsx b/apps/token/src/routes/governance/proposals/index.tsx
index 71845f299..911ce25bd 100644
--- a/apps/token/src/routes/governance/proposals/index.tsx
+++ b/apps/token/src/routes/governance/proposals/index.tsx
@@ -1 +1 @@
-export { ProposalsContainer, PROPOSALS_QUERY } from "./proposals-container";
+export { ProposalsContainer, PROPOSALS_QUERY } from './proposals-container';
diff --git a/apps/token/src/routes/home/home.scss b/apps/token/src/routes/home/home.scss
index 0555f1e24..dbf19e12e 100644
--- a/apps/token/src/routes/home/home.scss
+++ b/apps/token/src/routes/home/home.scss
@@ -1,5 +1,5 @@
.nav-links {
- display: flex;
+ display: flex;
flex-flow: column nowrap;
gap: 10px;
@@ -7,4 +7,3 @@
color: white;
}
}
-
diff --git a/apps/token/src/routes/home/token-details/index.tsx b/apps/token/src/routes/home/token-details/index.tsx
index 7766730fe..1926a3bfa 100644
--- a/apps/token/src/routes/home/token-details/index.tsx
+++ b/apps/token/src/routes/home/token-details/index.tsx
@@ -1 +1 @@
-export { TokenDetails } from "./token-details"
+export { TokenDetails } from './token-details';
diff --git a/apps/token/src/routes/redemption/home/vesting-table.scss b/apps/token/src/routes/redemption/home/vesting-table.scss
index b44be5f12..1702967dd 100644
--- a/apps/token/src/routes/redemption/home/vesting-table.scss
+++ b/apps/token/src/routes/redemption/home/vesting-table.scss
@@ -1,4 +1,4 @@
-@import "../../../styles/colors";
+@import '../../../styles/colors';
.vesting-table {
&__indicator-square {
diff --git a/apps/token/src/routes/redemption/home/vesting-table.tsx b/apps/token/src/routes/redemption/home/vesting-table.tsx
index 27664d587..d22471060 100644
--- a/apps/token/src/routes/redemption/home/vesting-table.tsx
+++ b/apps/token/src/routes/redemption/home/vesting-table.tsx
@@ -1,14 +1,14 @@
-import "./vesting-table.scss";
+import './vesting-table.scss';
-import React from "react";
-import { useTranslation } from "react-i18next";
+import React from 'react';
+import { useTranslation } from 'react-i18next';
import {
KeyValueTable,
KeyValueTableRow,
-} from "../../../components/key-value-table";
-import { BigNumber } from "../../../lib/bignumber";
-import { formatNumber } from "../../../lib/format-number";
+} from '../../../components/key-value-table';
+import { BigNumber } from '../../../lib/bignumber';
+import { formatNumber } from '../../../lib/format-number';
export interface VestingTableProps {
vested: BigNumber;
@@ -36,33 +36,33 @@ export const VestingTable = ({
}, [total, associated]);
return (
- {t("Across all tranches")}
+ {t('Across all tranches')}
- {t("Vesting VEGA")} |
+ {t('Vesting VEGA')} |
{formatNumber(total)} |
- {t("Locked")}
+ {t('Locked')}
|
{formatNumber(locked)} |
- {t("Unlocked")}
+ {t('Unlocked')}
|
{formatNumber(vested)} |
- {t("Associated")}
+ {t('Associated')}
|
{formatNumber(associated)} |
diff --git a/apps/token/src/routes/redemption/tranche-item.scss b/apps/token/src/routes/redemption/tranche-item.scss
index c1b1587c2..0b45737b3 100644
--- a/apps/token/src/routes/redemption/tranche-item.scss
+++ b/apps/token/src/routes/redemption/tranche-item.scss
@@ -1,5 +1,5 @@
-@import "../../styles/colors";
-@import "../../styles/fonts";
+@import '../../styles/colors';
+@import '../../styles/fonts';
.tranche-item {
margin-bottom: 48px;
diff --git a/apps/token/src/routes/redemption/tranche-table.scss b/apps/token/src/routes/redemption/tranche-table.scss
index 67710d26f..7dea6bd6a 100644
--- a/apps/token/src/routes/redemption/tranche-table.scss
+++ b/apps/token/src/routes/redemption/tranche-table.scss
@@ -1,4 +1,4 @@
-@import "../../styles/colors";
+@import '../../styles/colors';
.tranche-table {
&__label {
diff --git a/apps/token/src/routes/staking/associate/associate-info.tsx b/apps/token/src/routes/staking/associate/associate-info.tsx
index cf1a9ce78..3362217e0 100644
--- a/apps/token/src/routes/staking/associate/associate-info.tsx
+++ b/apps/token/src/routes/staking/associate/associate-info.tsx
@@ -1,17 +1,17 @@
-import { useTranslation } from "react-i18next";
+import { useTranslation } from 'react-i18next';
-import { ConnectedVegaKey } from "../../../components/connected-vega-key";
+import { ConnectedVegaKey } from '../../../components/connected-vega-key';
export const AssociateInfo = ({ pubKey }: { pubKey: string | null }) => {
const { t } = useTranslation();
return (
<>
- {t("What Vega wallet/key is going to control your stake?")}
+ {t('What Vega wallet/key is going to control your stake?')}
- {t("How much would you like to associate?")}
+ {t('How much would you like to associate?')}
>
);
diff --git a/apps/token/src/routes/staking/associate/associate-page-container.tsx b/apps/token/src/routes/staking/associate/associate-page-container.tsx
index 1ba1c4fad..de9bb0d07 100644
--- a/apps/token/src/routes/staking/associate/associate-page-container.tsx
+++ b/apps/token/src/routes/staking/associate/associate-page-container.tsx
@@ -1,9 +1,9 @@
-import React from "react";
+import React from 'react';
-import { useEthereumConfig } from "../../../hooks/use-ethereum-config";
-import { StakingWalletsContainer } from "../staking-wallets-container";
-import { AssociatePage } from "./associate-page";
-import { AssociatePageNoVega } from "./associate-page-no-vega";
+import { useEthereumConfig } from '../../../hooks/use-ethereum-config';
+import { StakingWalletsContainer } from '../staking-wallets-container';
+import { AssociatePage } from './associate-page';
+import { AssociatePageNoVega } from './associate-page-no-vega';
export const NetworkParamsContainer = ({
children,
diff --git a/apps/token/src/routes/staking/associate/associate-page-no-vega.tsx b/apps/token/src/routes/staking/associate/associate-page-no-vega.tsx
index 16f1735db..bd3a6a7d8 100644
--- a/apps/token/src/routes/staking/associate/associate-page-no-vega.tsx
+++ b/apps/token/src/routes/staking/associate/associate-page-no-vega.tsx
@@ -1,14 +1,14 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
+import React from 'react';
+import { useTranslation } from 'react-i18next';
-import { ConnectToVega } from "../connect-to-vega";
+import { ConnectToVega } from '../connect-to-vega';
export const AssociatePageNoVega = () => {
const { t } = useTranslation();
return (
- {t("associateInfo1")}
- {t("associateInfo2")}
+ {t('associateInfo1')}
+ {t('associateInfo2')}
{}
diff --git a/apps/token/src/routes/staking/associate/contract-associate.scss b/apps/token/src/routes/staking/associate/contract-associate.scss
index af6b4c0c3..68347fd9e 100644
--- a/apps/token/src/routes/staking/associate/contract-associate.scss
+++ b/apps/token/src/routes/staking/associate/contract-associate.scss
@@ -1,4 +1,4 @@
-@import "../../../styles/colors";
+@import '../../../styles/colors';
.contract-associate {
&__error {
diff --git a/apps/token/src/routes/staking/associate/wallet-associate.scss b/apps/token/src/routes/staking/associate/wallet-associate.scss
index d5e4f53f5..ba7276fd9 100644
--- a/apps/token/src/routes/staking/associate/wallet-associate.scss
+++ b/apps/token/src/routes/staking/associate/wallet-associate.scss
@@ -1,4 +1,4 @@
-@import "../../../styles/colors";
+@import '../../../styles/colors';
.wallet-associate {
&__error {
diff --git a/apps/token/src/routes/staking/disassociate/disassociate-page-container.tsx b/apps/token/src/routes/staking/disassociate/disassociate-page-container.tsx
index 4e6c29adb..7598bc42b 100644
--- a/apps/token/src/routes/staking/disassociate/disassociate-page-container.tsx
+++ b/apps/token/src/routes/staking/disassociate/disassociate-page-container.tsx
@@ -1,17 +1,19 @@
-import "./disassociate-page.scss";
+import './disassociate-page.scss';
-import { StakingWalletsContainer } from "../staking-wallets-container";
-import { DisassociatePage } from "./disassociate-page";
-import { DisassociatePageNoVega } from "./disassociate-page-no-vega";
+import { StakingWalletsContainer } from '../staking-wallets-container';
+import { DisassociatePage } from './disassociate-page';
+import { DisassociatePageNoVega } from './disassociate-page-no-vega';
export const DisassociateContainer = () => {
return (
- {({ address, currVegaKey = null }) => (
- currVegaKey
- ?
- :
- )}
+ {({ address, currVegaKey = null }) =>
+ currVegaKey ? (
+
+ ) : (
+
+ )
+ }
);
};
diff --git a/apps/token/src/routes/staking/disassociate/disassociate-page.scss b/apps/token/src/routes/staking/disassociate/disassociate-page.scss
index 69e25443a..1f66affb8 100644
--- a/apps/token/src/routes/staking/disassociate/disassociate-page.scss
+++ b/apps/token/src/routes/staking/disassociate/disassociate-page.scss
@@ -1,4 +1,4 @@
-@import "../../../styles/colors";
+@import '../../../styles/colors';
.disassociate-page {
&__error {
diff --git a/apps/token/src/routes/staking/node-list.scss b/apps/token/src/routes/staking/node-list.scss
index c6f57ee71..bb1e5a1bd 100644
--- a/apps/token/src/routes/staking/node-list.scss
+++ b/apps/token/src/routes/staking/node-list.scss
@@ -1,5 +1,5 @@
-@import "../../styles/colors";
-@import "../../styles/fonts";
+@import '../../styles/colors';
+@import '../../styles/fonts';
.node-list {
list-style: none;
diff --git a/apps/token/src/routes/staking/staking-form.scss b/apps/token/src/routes/staking/staking-form.scss
index 8829aa88a..0b0dc512e 100644
--- a/apps/token/src/routes/staking/staking-form.scss
+++ b/apps/token/src/routes/staking/staking-form.scss
@@ -7,7 +7,7 @@
&__input {
display: flex;
- flex: 1
+ flex: 1;
}
&__vega-label {
diff --git a/apps/token/src/routes/staking/staking-node.scss b/apps/token/src/routes/staking/staking-node.scss
index 3eff171fa..08adc80e6 100644
--- a/apps/token/src/routes/staking/staking-node.scss
+++ b/apps/token/src/routes/staking/staking-node.scss
@@ -2,8 +2,8 @@
&__epoch {
padding-top: 20px;
}
-
+
&__callout-container {
margin-top: 20px;
}
-}
\ No newline at end of file
+}
diff --git a/apps/token/src/routes/staking/validator-table.scss b/apps/token/src/routes/staking/validator-table.scss
index c5c86c554..e92715a75 100644
--- a/apps/token/src/routes/staking/validator-table.scss
+++ b/apps/token/src/routes/staking/validator-table.scss
@@ -1,3 +1,3 @@
.validator-table__cell {
word-break: break-all;
-}
\ No newline at end of file
+}
diff --git a/apps/token/src/routes/tranches/progress-bar.tsx b/apps/token/src/routes/tranches/progress-bar.tsx
index 0b51cedd3..c56e84fe2 100644
--- a/apps/token/src/routes/tranches/progress-bar.tsx
+++ b/apps/token/src/routes/tranches/progress-bar.tsx
@@ -8,22 +8,22 @@ export const ProgressBar = ({ width, color, percentage }: ProgressBarProps) => {
return (
diff --git a/apps/token/src/routes/tranches/tranche-dates.tsx b/apps/token/src/routes/tranches/tranche-dates.tsx
index 73db86bdc..d3b15feb8 100644
--- a/apps/token/src/routes/tranches/tranche-dates.tsx
+++ b/apps/token/src/routes/tranches/tranche-dates.tsx
@@ -1,7 +1,7 @@
-import { format } from "date-fns";
-import { useTranslation } from "react-i18next";
+import { format } from 'date-fns';
+import { useTranslation } from 'react-i18next';
-import { DATE_FORMAT_LONG } from "../../lib/date-formats";
+import { DATE_FORMAT_LONG } from '../../lib/date-formats';
interface TrancheDatesParams {
start: Date;
@@ -16,13 +16,13 @@ export const TrancheDates = ({ start, end }: TrancheDatesParams) => {
if (startDate === endDate) {
return (
- {t("Fully vested on", { date: format(startDate, DATE_FORMAT_LONG) })}
+ {t('Fully vested on', { date: format(startDate, DATE_FORMAT_LONG) })}
);
} else {
return (
- {t("Vesting from", {
+ {t('Vesting from', {
fromDate: format(startDate, DATE_FORMAT_LONG),
endDate: format(endDate, DATE_FORMAT_LONG),
})}
diff --git a/apps/token/src/routes/tranches/tranche-label.scss b/apps/token/src/routes/tranches/tranche-label.scss
index 419c641e3..26bdd56d6 100644
--- a/apps/token/src/routes/tranches/tranche-label.scss
+++ b/apps/token/src/routes/tranches/tranche-label.scss
@@ -1,4 +1,4 @@
-@import "../../styles/colors";
+@import '../../styles/colors';
.tranche-label {
margin-right: 5px;
diff --git a/apps/token/src/routes/tranches/tranche.scss b/apps/token/src/routes/tranches/tranche.scss
index 5320995eb..7820051f8 100644
--- a/apps/token/src/routes/tranches/tranche.scss
+++ b/apps/token/src/routes/tranches/tranche.scss
@@ -1,5 +1,5 @@
-@import "../../styles/colors";
-@import "../../styles/fonts";
+@import '../../styles/colors';
+@import '../../styles/fonts';
.tranche {
&__user-list {
diff --git a/apps/token/src/routes/tranches/tranches.scss b/apps/token/src/routes/tranches/tranches.scss
index 818ed3f98..4a7925a95 100644
--- a/apps/token/src/routes/tranches/tranches.scss
+++ b/apps/token/src/routes/tranches/tranches.scss
@@ -1,4 +1,4 @@
-@import "../../styles/colors";
+@import '../../styles/colors';
.tranches {
&__list {
diff --git a/apps/token/src/styles/_fonts.scss b/apps/token/src/styles/_fonts.scss
index b00d62647..f2bf9f555 100644
--- a/apps/token/src/styles/_fonts.scss
+++ b/apps/token/src/styles/_fonts.scss
@@ -1,7 +1,6 @@
-$font-main: "Helvetica neue", "Helvetica", arial, sans-serif;
-$font-mono: "Roboto Mono", monospace;
-$font-alpa-lyrae: AlphaLyrae, "Helvetica neue", "Helvetica", arial,
-sans-serif;
+$font-main: 'Helvetica neue', 'Helvetica', arial, sans-serif;
+$font-mono: 'Roboto Mono', monospace;
+$font-alpa-lyrae: AlphaLyrae, 'Helvetica neue', 'Helvetica', arial, sans-serif;
.font-main {
font-family: $font-main;
diff --git a/apps/token/tsconfig.json b/apps/token/tsconfig.json
index 64ca95578..586e1f677 100644
--- a/apps/token/tsconfig.json
+++ b/apps/token/tsconfig.json
@@ -11,7 +11,7 @@
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
- "resolveJsonModule": true,
+ "resolveJsonModule": true
},
"files": [],
"include": [],
diff --git a/libs/accounts/.babelrc b/libs/accounts/.babelrc
index 9f6abe49d..c7d82affe 100644
--- a/libs/accounts/.babelrc
+++ b/libs/accounts/.babelrc
@@ -1,6 +1,4 @@
{
- "presets": [
- "@nrwl/next/babel"
- ],
+ "presets": ["@nrwl/next/babel"],
"plugins": []
}
diff --git a/libs/positions/.babelrc b/libs/positions/.babelrc
index 9f6abe49d..c7d82affe 100644
--- a/libs/positions/.babelrc
+++ b/libs/positions/.babelrc
@@ -1,6 +1,4 @@
{
- "presets": [
- "@nrwl/next/babel"
- ],
+ "presets": ["@nrwl/next/babel"],
"plugins": []
}