diff --git a/.github/workflows/add_issue_new_projects.yml b/.github/workflows/add_issue_new_projects.yml index 56943d72d..e5bc79fd1 100644 --- a/.github/workflows/add_issue_new_projects.yml +++ b/.github/workflows/add_issue_new_projects.yml @@ -1,8 +1,7 @@ --- - name: Auto Assign Issue to New Project -"on": +'on': issues: types: [opened] diff --git a/apps/explorer/src/app/lib/apollo-client.tsx b/apps/explorer/src/app/lib/apollo-client.tsx index 8a30d5ea0..2b2ed69bd 100644 --- a/apps/explorer/src/app/lib/apollo-client.tsx +++ b/apps/explorer/src/app/lib/apollo-client.tsx @@ -1,16 +1,16 @@ -import { ApolloClient, from, HttpLink, InMemoryCache } from "@apollo/client"; -import { onError } from "@apollo/client/link/error"; -import { RetryLink } from "@apollo/client/link/retry"; +import { ApolloClient, from, HttpLink, InMemoryCache } from '@apollo/client'; +import { onError } from '@apollo/client/link/error'; +import { RetryLink } from '@apollo/client/link/retry'; export function createClient(base?: string) { if (!base) { - throw new Error("Base must be passed into createClient!"); + throw new Error('Base must be passed into createClient!'); } - const gqlPath = "query"; + const gqlPath = 'query'; const urlHTTP = new URL(gqlPath, base); const urlWS = new URL(gqlPath, base); // Replace http with ws, preserving if its a secure connection eg. https => wss - urlWS.protocol = urlWS.protocol.replace("http", "ws"); + urlWS.protocol = urlWS.protocol.replace('http', 'ws'); const cache = new InMemoryCache({ typePolicies: { @@ -37,7 +37,7 @@ export function createClient(base?: string) { const httpLink = new HttpLink({ uri: urlHTTP.href, - credentials: "same-origin", + credentials: 'same-origin', }); const errorLink = onError(({ graphQLErrors, networkError }) => { @@ -46,7 +46,7 @@ export function createClient(base?: string) { }); return new ApolloClient({ - connectToDevTools: process.env["NODE_ENV"] === "development", + connectToDevTools: process.env['NODE_ENV'] === 'development', link: from([errorLink, retryLink, httpLink]), cache, }); diff --git a/apps/token/src/app.scss b/apps/token/src/app.scss index ab4149e28..f0e2bf9ca 100644 --- a/apps/token/src/app.scss +++ b/apps/token/src/app.scss @@ -1,4 +1,4 @@ -@import "./styles/colors"; +@import './styles/colors'; .app { max-width: 1300px; diff --git a/apps/token/src/components/add-locked-token/index.tsx b/apps/token/src/components/add-locked-token/index.tsx index 2a9a3251d..5277c5bac 100644 --- a/apps/token/src/components/add-locked-token/index.tsx +++ b/apps/token/src/components/add-locked-token/index.tsx @@ -1 +1 @@ -export { AddLockedTokenAddress } from "./add-locked-token"; +export { AddLockedTokenAddress } from './add-locked-token'; diff --git a/apps/token/src/components/add-token-button/index.tsx b/apps/token/src/components/add-token-button/index.tsx index 6af59fca9..abc526f33 100644 --- a/apps/token/src/components/add-token-button/index.tsx +++ b/apps/token/src/components/add-token-button/index.tsx @@ -1 +1 @@ -export { AddTokenButton, AddTokenButtonLink } from "./add-token-button"; +export { AddTokenButton, AddTokenButtonLink } from './add-token-button'; diff --git a/apps/token/src/components/app-banner/app-banner.scss b/apps/token/src/components/app-banner/app-banner.scss index 711982ad5..843cfbddc 100644 --- a/apps/token/src/components/app-banner/app-banner.scss +++ b/apps/token/src/components/app-banner/app-banner.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .app-banner { background: $white; diff --git a/apps/token/src/components/app-banner/app-banner.tsx b/apps/token/src/components/app-banner/app-banner.tsx index 2bc534eeb..585e28b8a 100644 --- a/apps/token/src/components/app-banner/app-banner.tsx +++ b/apps/token/src/components/app-banner/app-banner.tsx @@ -1,7 +1,7 @@ -import "./app-banner.scss"; +import './app-banner.scss'; -import { useAppState } from "../../contexts/app-state/app-state-context"; -import { Error } from "../icons"; +import { useAppState } from '../../contexts/app-state/app-state-context'; +import { Error } from '../icons'; export const AppBanner = () => { const { diff --git a/apps/token/src/components/app-banner/index.ts b/apps/token/src/components/app-banner/index.ts index e33d38cb4..62d40a7ee 100644 --- a/apps/token/src/components/app-banner/index.ts +++ b/apps/token/src/components/app-banner/index.ts @@ -1 +1 @@ -export * from "./app-banner"; +export * from './app-banner'; diff --git a/apps/token/src/components/app-footer/index.ts b/apps/token/src/components/app-footer/index.ts index 498d563a3..74b244da7 100644 --- a/apps/token/src/components/app-footer/index.ts +++ b/apps/token/src/components/app-footer/index.ts @@ -1 +1 @@ -export * from "./app-footer"; +export * from './app-footer'; diff --git a/apps/token/src/components/balance-manager/index.ts b/apps/token/src/components/balance-manager/index.ts index aa3c1d1c0..3f071643a 100644 --- a/apps/token/src/components/balance-manager/index.ts +++ b/apps/token/src/components/balance-manager/index.ts @@ -1 +1 @@ -export * from "./balance-manager"; +export * from './balance-manager'; diff --git a/apps/token/src/components/bullet-header/bullet-header.scss b/apps/token/src/components/bullet-header/bullet-header.scss index 515302787..ec25b9fa8 100644 --- a/apps/token/src/components/bullet-header/bullet-header.scss +++ b/apps/token/src/components/bullet-header/bullet-header.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .bullet-header { font-size: 16px; @@ -10,7 +10,7 @@ width: 100%; &::before { - content: ""; + content: ''; display: inline-block; width: 12px; height: 12px; diff --git a/apps/token/src/components/bullet-header/bullet-header.tsx b/apps/token/src/components/bullet-header/bullet-header.tsx index ac787b45a..1d1a45702 100644 --- a/apps/token/src/components/bullet-header/bullet-header.tsx +++ b/apps/token/src/components/bullet-header/bullet-header.tsx @@ -1,9 +1,9 @@ -import "./bullet-header.scss"; +import './bullet-header.scss'; -import React from "react"; +import React from 'react'; interface BulletHeaderProps { - tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; + tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; children: React.ReactNode; style?: React.CSSProperties; } @@ -11,7 +11,7 @@ interface BulletHeaderProps { export const BulletHeader = ({ tag, children, style }: BulletHeaderProps) => { return React.createElement( tag, - { className: "bullet-header", style }, + { className: 'bullet-header', style }, children ); }; diff --git a/apps/token/src/components/bullet-header/index.ts b/apps/token/src/components/bullet-header/index.ts index 40cccd520..8a855e6b7 100644 --- a/apps/token/src/components/bullet-header/index.ts +++ b/apps/token/src/components/bullet-header/index.ts @@ -1 +1 @@ -export * from "./bullet-header"; +export * from './bullet-header'; diff --git a/apps/token/src/components/connected-vega-key/connected-vega-key.scss b/apps/token/src/components/connected-vega-key/connected-vega-key.scss index 4bb2fc606..0f080f7d5 100644 --- a/apps/token/src/components/connected-vega-key/connected-vega-key.scss +++ b/apps/token/src/components/connected-vega-key/connected-vega-key.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .connected-vega-key { color: $white; diff --git a/apps/token/src/components/connected-vega-key/index.tsx b/apps/token/src/components/connected-vega-key/index.tsx index d2d8c2907..03704aa53 100644 --- a/apps/token/src/components/connected-vega-key/index.tsx +++ b/apps/token/src/components/connected-vega-key/index.tsx @@ -1,15 +1,15 @@ -import "./connected-vega-key.scss"; +import './connected-vega-key.scss'; -import { useTranslation } from "react-i18next"; +import { useTranslation } from 'react-i18next'; -import { ConnectToVega } from "../../routes/staking/connect-to-vega"; +import { ConnectToVega } from '../../routes/staking/connect-to-vega'; export const ConnectedVegaKey = ({ pubKey }: { pubKey: string | null }) => { const { t } = useTranslation(); return (
- {pubKey ? t("Connected Vega key") : } + {pubKey ? t('Connected Vega key') : }

{pubKey}

diff --git a/apps/token/src/components/country-selector/country-data.js b/apps/token/src/components/country-selector/country-data.js index 00d461fb2..9c89faefb 100644 --- a/apps/token/src/components/country-selector/country-data.js +++ b/apps/token/src/components/country-selector/country-data.js @@ -1,1003 +1,1003 @@ const COUNTRIES = [ { - name: "Afghanistan", - code: "AF", + name: 'Afghanistan', + code: 'AF', }, { - name: "Albania", - code: "AL", + name: 'Albania', + code: 'AL', }, { - name: "Algeria", - code: "DZ", + name: 'Algeria', + code: 'DZ', }, { - name: "American Samoa", - code: "AS", + name: 'American Samoa', + code: 'AS', }, { - name: "Andorra", - code: "AD", + name: 'Andorra', + code: 'AD', }, { - name: "Angola", - code: "AO", + name: 'Angola', + code: 'AO', }, { - name: "Anguilla", - code: "AI", + name: 'Anguilla', + code: 'AI', }, { - name: "Antarctica", - code: "AQ", + name: 'Antarctica', + code: 'AQ', }, { - name: "Antigua and Barbuda", - code: "AG", + name: 'Antigua and Barbuda', + code: 'AG', }, { - name: "Argentina", - code: "AR", + name: 'Argentina', + code: 'AR', }, { - name: "Armenia", - code: "AM", + name: 'Armenia', + code: 'AM', }, { - name: "Aruba", - code: "AW", + name: 'Aruba', + code: 'AW', }, { - name: "Australia", - code: "AU", + name: 'Australia', + code: 'AU', }, { - name: "Austria", - code: "AT", + name: 'Austria', + code: 'AT', }, { - name: "Azerbaijan", - code: "AZ", + name: 'Azerbaijan', + code: 'AZ', }, { - name: "Bahamas (the)", - code: "BS", + name: 'Bahamas (the)', + code: 'BS', }, { - name: "Bahrain", - code: "BH", + name: 'Bahrain', + code: 'BH', }, { - name: "Bangladesh", - code: "BD", + name: 'Bangladesh', + code: 'BD', }, { - name: "Barbados", - code: "BB", + name: 'Barbados', + code: 'BB', }, { - name: "Belarus", - code: "BY", + name: 'Belarus', + code: 'BY', }, { - name: "Belgium", - code: "BE", + name: 'Belgium', + code: 'BE', }, { - name: "Belize", - code: "BZ", + name: 'Belize', + code: 'BZ', }, { - name: "Benin", - code: "BJ", + name: 'Benin', + code: 'BJ', }, { - name: "Bermuda", - code: "BM", + name: 'Bermuda', + code: 'BM', }, { - name: "Bhutan", - code: "BT", + name: 'Bhutan', + code: 'BT', }, { - name: "Bolivia (Plurinational State of)", - code: "BO", + name: 'Bolivia (Plurinational State of)', + code: 'BO', }, { - name: "Bonaire, Sint Eustatius and Saba", - code: "BQ", + name: 'Bonaire, Sint Eustatius and Saba', + code: 'BQ', }, { - name: "Bosnia and Herzegovina", - code: "BA", + name: 'Bosnia and Herzegovina', + code: 'BA', }, { - name: "Botswana", - code: "BW", + name: 'Botswana', + code: 'BW', }, { - name: "Bouvet Island", - code: "BV", + name: 'Bouvet Island', + code: 'BV', }, { - name: "Brazil", - code: "BR", + name: 'Brazil', + code: 'BR', }, { - name: "British Indian Ocean Territory (the)", - code: "IO", + name: 'British Indian Ocean Territory (the)', + code: 'IO', }, { - name: "Brunei Darussalam", - code: "BN", + name: 'Brunei Darussalam', + code: 'BN', }, { - name: "Bulgaria", - code: "BG", + name: 'Bulgaria', + code: 'BG', }, { - name: "Burkina Faso", - code: "BF", + name: 'Burkina Faso', + code: 'BF', }, { - name: "Burundi", - code: "BI", + name: 'Burundi', + code: 'BI', }, { - name: "Cabo Verde", - code: "CV", + name: 'Cabo Verde', + code: 'CV', }, { - name: "Cambodia", - code: "KH", + name: 'Cambodia', + code: 'KH', }, { - name: "Cameroon", - code: "CM", + name: 'Cameroon', + code: 'CM', }, { - name: "Canada", - code: "CA", + name: 'Canada', + code: 'CA', }, { - name: "Cayman Islands (the)", - code: "KY", + name: 'Cayman Islands (the)', + code: 'KY', }, { - name: "Central African Republic (the)", - code: "CF", + name: 'Central African Republic (the)', + code: 'CF', }, { - name: "Chad", - code: "TD", + name: 'Chad', + code: 'TD', }, { - name: "Chile", - code: "CL", + name: 'Chile', + code: 'CL', }, { - name: "China", - code: "CN", + name: 'China', + code: 'CN', }, { - name: "Christmas Island", - code: "CX", + name: 'Christmas Island', + code: 'CX', }, { - name: "Cocos (Keeling) Islands (the)", - code: "CC", + name: 'Cocos (Keeling) Islands (the)', + code: 'CC', }, { - name: "Colombia", - code: "CO", + name: 'Colombia', + code: 'CO', }, { - name: "Comoros (the)", - code: "KM", + name: 'Comoros (the)', + code: 'KM', }, { - name: "Congo (the Democratic Republic of the)", - code: "CD", + name: 'Congo (the Democratic Republic of the)', + code: 'CD', }, { - name: "Congo (the)", - code: "CG", + name: 'Congo (the)', + code: 'CG', }, { - name: "Cook Islands (the)", - code: "CK", + name: 'Cook Islands (the)', + code: 'CK', }, { - name: "Costa Rica", - code: "CR", + name: 'Costa Rica', + code: 'CR', }, { - name: "Croatia", - code: "HR", + name: 'Croatia', + code: 'HR', }, { - name: "Crimea Region (the)", - code: "RC", + name: 'Crimea Region (the)', + code: 'RC', }, { - name: "Cuba", - code: "CU", + name: 'Cuba', + code: 'CU', }, { - name: "Curaçao", - code: "CW", + name: 'Curaçao', + code: 'CW', }, { - name: "Cyprus", - code: "CY", + name: 'Cyprus', + code: 'CY', }, { - name: "Czechia", - code: "CZ", + name: 'Czechia', + code: 'CZ', }, { name: "Côte d'Ivoire", - code: "CI", + code: 'CI', }, { - name: "Denmark", - code: "DK", + name: 'Denmark', + code: 'DK', }, { - name: "Djibouti", - code: "DJ", + name: 'Djibouti', + code: 'DJ', }, { - name: "Dominica", - code: "DM", + name: 'Dominica', + code: 'DM', }, { - name: "Dominican Republic (the)", - code: "DO", + name: 'Dominican Republic (the)', + code: 'DO', }, { - name: "Ecuador", - code: "EC", + name: 'Ecuador', + code: 'EC', }, { - name: "Egypt", - code: "EG", + name: 'Egypt', + code: 'EG', }, { - name: "El Salvador", - code: "SV", + name: 'El Salvador', + code: 'SV', }, { - name: "Equatorial Guinea", - code: "GQ", + name: 'Equatorial Guinea', + code: 'GQ', }, { - name: "Eritrea", - code: "ER", + name: 'Eritrea', + code: 'ER', }, { - name: "Estonia", - code: "EE", + name: 'Estonia', + code: 'EE', }, { - name: "Eswatini", - code: "SZ", + name: 'Eswatini', + code: 'SZ', }, { - name: "Ethiopia", - code: "ET", + name: 'Ethiopia', + code: 'ET', }, { - name: "Falkland Islands (the) [Malvinas]", - code: "FK", + name: 'Falkland Islands (the) [Malvinas]', + code: 'FK', }, { - name: "Faroe Islands (the)", - code: "FO", + name: 'Faroe Islands (the)', + code: 'FO', }, { - name: "Fiji", - code: "FJ", + name: 'Fiji', + code: 'FJ', }, { - name: "Finland", - code: "FI", + name: 'Finland', + code: 'FI', }, { - name: "France", - code: "FR", + name: 'France', + code: 'FR', }, { - name: "French Guiana", - code: "GF", + name: 'French Guiana', + code: 'GF', }, { - name: "French Polynesia", - code: "PF", + name: 'French Polynesia', + code: 'PF', }, { - name: "French Southern Territories (the)", - code: "TF", + name: 'French Southern Territories (the)', + code: 'TF', }, { - name: "Gabon", - code: "GA", + name: 'Gabon', + code: 'GA', }, { - name: "Gambia (the)", - code: "GM", + name: 'Gambia (the)', + code: 'GM', }, { - name: "Georgia", - code: "GE", + name: 'Georgia', + code: 'GE', }, { - name: "Germany", - code: "DE", + name: 'Germany', + code: 'DE', }, { - name: "Ghana", - code: "GH", + name: 'Ghana', + code: 'GH', }, { - name: "Gibraltar", - code: "GI", + name: 'Gibraltar', + code: 'GI', }, { - name: "Greece", - code: "GR", + name: 'Greece', + code: 'GR', }, { - name: "Greenland", - code: "GL", + name: 'Greenland', + code: 'GL', }, { - name: "Grenada", - code: "GD", + name: 'Grenada', + code: 'GD', }, { - name: "Guadeloupe", - code: "GP", + name: 'Guadeloupe', + code: 'GP', }, { - name: "Guam", - code: "GU", + name: 'Guam', + code: 'GU', }, { - name: "Guatemala", - code: "GT", + name: 'Guatemala', + code: 'GT', }, { - name: "Guernsey", - code: "GG", + name: 'Guernsey', + code: 'GG', }, { - name: "Guinea", - code: "GN", + name: 'Guinea', + code: 'GN', }, { - name: "Guinea-Bissau", - code: "GW", + name: 'Guinea-Bissau', + code: 'GW', }, { - name: "Guyana", - code: "GY", + name: 'Guyana', + code: 'GY', }, { - name: "Haiti", - code: "HT", + name: 'Haiti', + code: 'HT', }, { - name: "Heard Island and McDonald Islands", - code: "HM", + name: 'Heard Island and McDonald Islands', + code: 'HM', }, { - name: "Holy See (the)", - code: "VA", + name: 'Holy See (the)', + code: 'VA', }, { - name: "Honduras", - code: "HN", + name: 'Honduras', + code: 'HN', }, { - name: "Hong Kong", - code: "HK", + name: 'Hong Kong', + code: 'HK', }, { - name: "Hungary", - code: "HU", + name: 'Hungary', + code: 'HU', }, { - name: "Iceland", - code: "IS", + name: 'Iceland', + code: 'IS', }, { - name: "India", - code: "IN", + name: 'India', + code: 'IN', }, { - name: "Indonesia", - code: "ID", + name: 'Indonesia', + code: 'ID', }, { - name: "Iran (Islamic Republic of)", - code: "IR", + name: 'Iran (Islamic Republic of)', + code: 'IR', }, { - name: "Iraq", - code: "IQ", + name: 'Iraq', + code: 'IQ', }, { - name: "Ireland", - code: "IE", + name: 'Ireland', + code: 'IE', }, { - name: "Isle of Man", - code: "IM", + name: 'Isle of Man', + code: 'IM', }, { - name: "Israel", - code: "IL", + name: 'Israel', + code: 'IL', }, { - name: "Italy", - code: "IT", + name: 'Italy', + code: 'IT', }, { - name: "Jamaica", - code: "JM", + name: 'Jamaica', + code: 'JM', }, { - name: "Japan", - code: "JP", + name: 'Japan', + code: 'JP', }, { - name: "Jersey", - code: "JE", + name: 'Jersey', + code: 'JE', }, { - name: "Jordan", - code: "JO", + name: 'Jordan', + code: 'JO', }, { - name: "Kazakhstan", - code: "KZ", + name: 'Kazakhstan', + code: 'KZ', }, { - name: "Kenya", - code: "KE", + name: 'Kenya', + code: 'KE', }, { - name: "Kiribati", - code: "KI", + name: 'Kiribati', + code: 'KI', }, { name: "Korea (the Democratic People's Republic of)", - code: "KP", + code: 'KP', }, { - name: "Korea (the Republic of)", - code: "KR", + name: 'Korea (the Republic of)', + code: 'KR', }, { - name: "Kuwait", - code: "KW", + name: 'Kuwait', + code: 'KW', }, { - name: "Kyrgyzstan", - code: "KG", + name: 'Kyrgyzstan', + code: 'KG', }, { name: "Lao People's Democratic Republic (the)", - code: "LA", + code: 'LA', }, { - name: "Latvia", - code: "LV", + name: 'Latvia', + code: 'LV', }, { - name: "Lebanon", - code: "LB", + name: 'Lebanon', + code: 'LB', }, { - name: "Lesotho", - code: "LS", + name: 'Lesotho', + code: 'LS', }, { - name: "Liberia", - code: "LR", + name: 'Liberia', + code: 'LR', }, { - name: "Libya", - code: "LY", + name: 'Libya', + code: 'LY', }, { - name: "Liechtenstein", - code: "LI", + name: 'Liechtenstein', + code: 'LI', }, { - name: "Lithuania", - code: "LT", + name: 'Lithuania', + code: 'LT', }, { - name: "Luxembourg", - code: "LU", + name: 'Luxembourg', + code: 'LU', }, { - name: "Macao", - code: "MO", + name: 'Macao', + code: 'MO', }, { - name: "Madagascar", - code: "MG", + name: 'Madagascar', + code: 'MG', }, { - name: "Malawi", - code: "MW", + name: 'Malawi', + code: 'MW', }, { - name: "Malaysia", - code: "MY", + name: 'Malaysia', + code: 'MY', }, { - name: "Maldives", - code: "MV", + name: 'Maldives', + code: 'MV', }, { - name: "Mali", - code: "ML", + name: 'Mali', + code: 'ML', }, { - name: "Malta", - code: "MT", + name: 'Malta', + code: 'MT', }, { - name: "Marshall Islands (the)", - code: "MH", + name: 'Marshall Islands (the)', + code: 'MH', }, { - name: "Martinique", - code: "MQ", + name: 'Martinique', + code: 'MQ', }, { - name: "Mauritania", - code: "MR", + name: 'Mauritania', + code: 'MR', }, { - name: "Mauritius", - code: "MU", + name: 'Mauritius', + code: 'MU', }, { - name: "Mayotte", - code: "YT", + name: 'Mayotte', + code: 'YT', }, { - name: "Mexico", - code: "MX", + name: 'Mexico', + code: 'MX', }, { - name: "Micronesia (Federated States of)", - code: "FM", + name: 'Micronesia (Federated States of)', + code: 'FM', }, { - name: "Moldova (the Republic of)", - code: "MD", + name: 'Moldova (the Republic of)', + code: 'MD', }, { - name: "Monaco", - code: "MC", + name: 'Monaco', + code: 'MC', }, { - name: "Mongolia", - code: "MN", + name: 'Mongolia', + code: 'MN', }, { - name: "Montenegro", - code: "ME", + name: 'Montenegro', + code: 'ME', }, { - name: "Montserrat", - code: "MS", + name: 'Montserrat', + code: 'MS', }, { - name: "Morocco", - code: "MA", + name: 'Morocco', + code: 'MA', }, { - name: "Mozambique", - code: "MZ", + name: 'Mozambique', + code: 'MZ', }, { - name: "Myanmar", - code: "MM", + name: 'Myanmar', + code: 'MM', }, { - name: "Namibia", - code: "NA", + name: 'Namibia', + code: 'NA', }, { - name: "Nauru", - code: "NR", + name: 'Nauru', + code: 'NR', }, { - name: "Nepal", - code: "NP", + name: 'Nepal', + code: 'NP', }, { - name: "Netherlands (the)", - code: "NL", + name: 'Netherlands (the)', + code: 'NL', }, { - name: "New Caledonia", - code: "NC", + name: 'New Caledonia', + code: 'NC', }, { - name: "New Zealand", - code: "NZ", + name: 'New Zealand', + code: 'NZ', }, { - name: "Nicaragua", - code: "NI", + name: 'Nicaragua', + code: 'NI', }, { - name: "Niger (the)", - code: "NE", + name: 'Niger (the)', + code: 'NE', }, { - name: "Nigeria", - code: "NG", + name: 'Nigeria', + code: 'NG', }, { - name: "Niue", - code: "NU", + name: 'Niue', + code: 'NU', }, { - name: "Norfolk Island", - code: "NF", + name: 'Norfolk Island', + code: 'NF', }, { - name: "North Macedonia", - code: "MK", + name: 'North Macedonia', + code: 'MK', }, { - name: "Northern Mariana Islands (the)", - code: "MP", + name: 'Northern Mariana Islands (the)', + code: 'MP', }, { - name: "Norway", - code: "NO", + name: 'Norway', + code: 'NO', }, { - name: "Oman", - code: "OM", + name: 'Oman', + code: 'OM', }, { - name: "Pakistan", - code: "PK", + name: 'Pakistan', + code: 'PK', }, { - name: "Palau", - code: "PW", + name: 'Palau', + code: 'PW', }, { - name: "Palestine, State of", - code: "PS", + name: 'Palestine, State of', + code: 'PS', }, { - name: "Panama", - code: "PA", + name: 'Panama', + code: 'PA', }, { - name: "Papua New Guinea", - code: "PG", + name: 'Papua New Guinea', + code: 'PG', }, { - name: "Paraguay", - code: "PY", + name: 'Paraguay', + code: 'PY', }, { - name: "Peru", - code: "PE", + name: 'Peru', + code: 'PE', }, { - name: "Philippines (the)", - code: "PH", + name: 'Philippines (the)', + code: 'PH', }, { - name: "Pitcairn", - code: "PN", + name: 'Pitcairn', + code: 'PN', }, { - name: "Poland", - code: "PL", + name: 'Poland', + code: 'PL', }, { - name: "Portugal", - code: "PT", + name: 'Portugal', + code: 'PT', }, { - name: "Puerto Rico", - code: "PR", + name: 'Puerto Rico', + code: 'PR', }, { - name: "Qatar", - code: "QA", + name: 'Qatar', + code: 'QA', }, { - name: "Romania", - code: "RO", + name: 'Romania', + code: 'RO', }, { - name: "Russian Federation (excluding Crimea)", - code: "RU", + name: 'Russian Federation (excluding Crimea)', + code: 'RU', }, { - name: "Rwanda", - code: "RW", + name: 'Rwanda', + code: 'RW', }, { - name: "Réunion", - code: "RE", + name: 'Réunion', + code: 'RE', }, { - name: "Saint Barthélemy", - code: "BL", + name: 'Saint Barthélemy', + code: 'BL', }, { - name: "Saint Helena, Ascension and Tristan da Cunha", - code: "SH", + name: 'Saint Helena, Ascension and Tristan da Cunha', + code: 'SH', }, { - name: "Saint Kitts and Nevis", - code: "KN", + name: 'Saint Kitts and Nevis', + code: 'KN', }, { - name: "Saint Lucia", - code: "LC", + name: 'Saint Lucia', + code: 'LC', }, { - name: "Saint Martin (French part)", - code: "MF", + name: 'Saint Martin (French part)', + code: 'MF', }, { - name: "Saint Pierre and Miquelon", - code: "PM", + name: 'Saint Pierre and Miquelon', + code: 'PM', }, { - name: "Saint Vincent and the Grenadines", - code: "VC", + name: 'Saint Vincent and the Grenadines', + code: 'VC', }, { - name: "Samoa", - code: "WS", + name: 'Samoa', + code: 'WS', }, { - name: "San Marino", - code: "SM", + name: 'San Marino', + code: 'SM', }, { - name: "Sao Tome and Principe", - code: "ST", + name: 'Sao Tome and Principe', + code: 'ST', }, { - name: "Saudi Arabia", - code: "SA", + name: 'Saudi Arabia', + code: 'SA', }, { - name: "Senegal", - code: "SN", + name: 'Senegal', + code: 'SN', }, { - name: "Serbia", - code: "RS", + name: 'Serbia', + code: 'RS', }, { - name: "Seychelles", - code: "SC", + name: 'Seychelles', + code: 'SC', }, { - name: "Sierra Leone", - code: "SL", + name: 'Sierra Leone', + code: 'SL', }, { - name: "Singapore", - code: "SG", + name: 'Singapore', + code: 'SG', }, { - name: "Sint Maarten (Dutch part)", - code: "SX", + name: 'Sint Maarten (Dutch part)', + code: 'SX', }, { - name: "Slovakia", - code: "SK", + name: 'Slovakia', + code: 'SK', }, { - name: "Slovenia", - code: "SI", + name: 'Slovenia', + code: 'SI', }, { - name: "Solomon Islands", - code: "SB", + name: 'Solomon Islands', + code: 'SB', }, { - name: "Somalia", - code: "SO", + name: 'Somalia', + code: 'SO', }, { - name: "South Africa", - code: "ZA", + name: 'South Africa', + code: 'ZA', }, { - name: "South Georgia and the South Sandwich Islands", - code: "GS", + name: 'South Georgia and the South Sandwich Islands', + code: 'GS', }, { - name: "South Sudan", - code: "SS", + name: 'South Sudan', + code: 'SS', }, { - name: "Spain", - code: "ES", + name: 'Spain', + code: 'ES', }, { - name: "Sri Lanka", - code: "LK", + name: 'Sri Lanka', + code: 'LK', }, { - name: "Sudan (the)", - code: "SD", + name: 'Sudan (the)', + code: 'SD', }, { - name: "Suriname", - code: "SR", + name: 'Suriname', + code: 'SR', }, { - name: "Svalbard and Jan Mayen", - code: "SJ", + name: 'Svalbard and Jan Mayen', + code: 'SJ', }, { - name: "Sweden", - code: "SE", + name: 'Sweden', + code: 'SE', }, { - name: "Switzerland", - code: "CH", + name: 'Switzerland', + code: 'CH', }, { - name: "Syrian Arab Republic (the)", - code: "SY", + name: 'Syrian Arab Republic (the)', + code: 'SY', }, { - name: "Taiwan (Province of China)", - code: "TW", + name: 'Taiwan (Province of China)', + code: 'TW', }, { - name: "Tajikistan", - code: "TJ", + name: 'Tajikistan', + code: 'TJ', }, { - name: "Tanzania, the United Republic of", - code: "TZ", + name: 'Tanzania, the United Republic of', + code: 'TZ', }, { - name: "Thailand", - code: "TH", + name: 'Thailand', + code: 'TH', }, { - name: "Timor-Leste", - code: "TL", + name: 'Timor-Leste', + code: 'TL', }, { - name: "Togo", - code: "TG", + name: 'Togo', + code: 'TG', }, { - name: "Tokelau", - code: "TK", + name: 'Tokelau', + code: 'TK', }, { - name: "Tonga", - code: "TO", + name: 'Tonga', + code: 'TO', }, { - name: "Trinidad and Tobago", - code: "TT", + name: 'Trinidad and Tobago', + code: 'TT', }, { - name: "Tunisia", - code: "TN", + name: 'Tunisia', + code: 'TN', }, { - name: "Turkey", - code: "TR", + name: 'Turkey', + code: 'TR', }, { - name: "Turkmenistan", - code: "TM", + name: 'Turkmenistan', + code: 'TM', }, { - name: "Turks and Caicos Islands (the)", - code: "TC", + name: 'Turks and Caicos Islands (the)', + code: 'TC', }, { - name: "Tuvalu", - code: "TV", + name: 'Tuvalu', + code: 'TV', }, { - name: "Uganda", - code: "UG", + name: 'Uganda', + code: 'UG', }, { - name: "Ukraine (excluding Crimea)", - code: "UA", + name: 'Ukraine (excluding Crimea)', + code: 'UA', }, { - name: "United Arab Emirates (the)", - code: "AE", + name: 'United Arab Emirates (the)', + code: 'AE', }, { - name: "United Kingdom of Great Britain and Northern Ireland (the)", - code: "GB", + name: 'United Kingdom of Great Britain and Northern Ireland (the)', + code: 'GB', }, { - name: "United States Minor Outlying Islands (the)", - code: "UM", + name: 'United States Minor Outlying Islands (the)', + code: 'UM', }, { - name: "United States of America (the)", - code: "US", + name: 'United States of America (the)', + code: 'US', }, { - name: "Uruguay", - code: "UY", + name: 'Uruguay', + code: 'UY', }, { - name: "Uzbekistan", - code: "UZ", + name: 'Uzbekistan', + code: 'UZ', }, { - name: "Vanuatu", - code: "VU", + name: 'Vanuatu', + code: 'VU', }, { - name: "Venezuela (Bolivarian Republic of)", - code: "VE", + name: 'Venezuela (Bolivarian Republic of)', + code: 'VE', }, { - name: "Viet Nam", - code: "VN", + name: 'Viet Nam', + code: 'VN', }, { - name: "Virgin Islands (British)", - code: "VG", + name: 'Virgin Islands (British)', + code: 'VG', }, { - name: "Virgin Islands (U.S.)", - code: "VI", + name: 'Virgin Islands (U.S.)', + code: 'VI', }, { - name: "Wallis and Futuna", - code: "WF", + name: 'Wallis and Futuna', + code: 'WF', }, { - name: "Western Sahara*", - code: "EH", + name: 'Western Sahara*', + code: 'EH', }, { - name: "Yemen", - code: "YE", + name: 'Yemen', + code: 'YE', }, { - name: "Zambia", - code: "ZM", + name: 'Zambia', + code: 'ZM', }, { - name: "Zimbabwe", - code: "ZW", + name: 'Zimbabwe', + code: 'ZW', }, { - name: "Åland Islands", - code: "AX", + name: 'Åland Islands', + code: 'AX', }, ]; diff --git a/apps/token/src/components/country-selector/index.ts b/apps/token/src/components/country-selector/index.ts index f773a8340..e56f4d0bb 100644 --- a/apps/token/src/components/country-selector/index.ts +++ b/apps/token/src/components/country-selector/index.ts @@ -1 +1 @@ -export { CountrySelector } from "./country-selector"; \ No newline at end of file +export { CountrySelector } from './country-selector'; diff --git a/apps/token/src/components/epoch-countdown/index.tsx b/apps/token/src/components/epoch-countdown/index.tsx index 271d3bcc6..b0e6453ee 100644 --- a/apps/token/src/components/epoch-countdown/index.tsx +++ b/apps/token/src/components/epoch-countdown/index.tsx @@ -1 +1 @@ -export * from "./epoch-countdown"; +export * from './epoch-countdown'; diff --git a/apps/token/src/components/eth-connect-prompt/index.ts b/apps/token/src/components/eth-connect-prompt/index.ts index 9b1e50d96..3ac35bedb 100644 --- a/apps/token/src/components/eth-connect-prompt/index.ts +++ b/apps/token/src/components/eth-connect-prompt/index.ts @@ -1 +1 @@ -export * from "./eth-connect-promp"; +export * from './eth-connect-promp'; diff --git a/apps/token/src/components/eth-wallet-container/index.ts b/apps/token/src/components/eth-wallet-container/index.ts index 9a437c7c2..669004a23 100644 --- a/apps/token/src/components/eth-wallet-container/index.ts +++ b/apps/token/src/components/eth-wallet-container/index.ts @@ -1 +1 @@ -export * from "./eth-wallet-container"; +export * from './eth-wallet-container'; diff --git a/apps/token/src/components/eth-wallet/eth-wallet.scss b/apps/token/src/components/eth-wallet/eth-wallet.scss index 203e7ae8f..727fcb003 100644 --- a/apps/token/src/components/eth-wallet/eth-wallet.scss +++ b/apps/token/src/components/eth-wallet/eth-wallet.scss @@ -1,5 +1,5 @@ -@import "../../styles/colors"; -@import "../../styles/fonts"; +@import '../../styles/colors'; +@import '../../styles/fonts'; .eth-wallet { &__pending-tx-button { diff --git a/apps/token/src/components/eth-wallet/index.tsx b/apps/token/src/components/eth-wallet/index.tsx index e59f68dd6..025c868c1 100644 --- a/apps/token/src/components/eth-wallet/index.tsx +++ b/apps/token/src/components/eth-wallet/index.tsx @@ -1 +1 @@ -export * from "./eth-wallet"; +export * from './eth-wallet'; diff --git a/apps/token/src/components/graphql-provider/graphql-provider.tsx b/apps/token/src/components/graphql-provider/graphql-provider.tsx index 1fa750690..7a4a34995 100644 --- a/apps/token/src/components/graphql-provider/graphql-provider.tsx +++ b/apps/token/src/components/graphql-provider/graphql-provider.tsx @@ -1,7 +1,7 @@ -import { ApolloProvider } from "@apollo/client"; -import React from "react"; +import { ApolloProvider } from '@apollo/client'; +import React from 'react'; -import { client } from "../../lib/apollo-client"; +import { client } from '../../lib/apollo-client'; export const GraphQlProvider = ({ children, diff --git a/apps/token/src/components/graphql-provider/index.ts b/apps/token/src/components/graphql-provider/index.ts index 1949e5f16..eb5712fd1 100644 --- a/apps/token/src/components/graphql-provider/index.ts +++ b/apps/token/src/components/graphql-provider/index.ts @@ -1 +1 @@ -export * from "./graphql-provider"; +export * from './graphql-provider'; diff --git a/apps/token/src/components/heading/index.ts b/apps/token/src/components/heading/index.ts index 8ce959fdc..045dc4fd8 100644 --- a/apps/token/src/components/heading/index.ts +++ b/apps/token/src/components/heading/index.ts @@ -1 +1 @@ -export { Heading } from "./heading"; +export { Heading } from './heading'; diff --git a/apps/token/src/components/icons/index.ts b/apps/token/src/components/icons/index.ts index 101ed8ed8..902a72854 100644 --- a/apps/token/src/components/icons/index.ts +++ b/apps/token/src/components/icons/index.ts @@ -1,6 +1,6 @@ -import "./icons.scss"; +import './icons.scss'; -export * from "./error"; -export * from "./tick"; -export * from "./hand-up"; -export * from "./ethereum"; +export * from './error'; +export * from './tick'; +export * from './hand-up'; +export * from './ethereum'; diff --git a/apps/token/src/components/key-value-table/index.tsx b/apps/token/src/components/key-value-table/index.tsx index dd4b60a05..15ce6e5b3 100644 --- a/apps/token/src/components/key-value-table/index.tsx +++ b/apps/token/src/components/key-value-table/index.tsx @@ -1 +1 @@ -export { KeyValueTable, KeyValueTableRow } from './key-value-table' +export { KeyValueTable, KeyValueTableRow } from './key-value-table'; diff --git a/apps/token/src/components/key-value-table/key-value-table.scss b/apps/token/src/components/key-value-table/key-value-table.scss index c91ce5185..7fc8c28d9 100644 --- a/apps/token/src/components/key-value-table/key-value-table.scss +++ b/apps/token/src/components/key-value-table/key-value-table.scss @@ -1,7 +1,7 @@ -@import "../../styles/colors"; -@import "../../styles/fonts"; +@import '../../styles/colors'; +@import '../../styles/fonts'; -$ns: "key-value-table"; +$ns: 'key-value-table'; .#{$ns}__header, .#{$ns}__footer { diff --git a/apps/token/src/components/key-value-table/key-value-table.test.tsx b/apps/token/src/components/key-value-table/key-value-table.test.tsx index cf2a3e552..7597d1f35 100644 --- a/apps/token/src/components/key-value-table/key-value-table.test.tsx +++ b/apps/token/src/components/key-value-table/key-value-table.test.tsx @@ -1,12 +1,12 @@ -import { render, screen } from "@testing-library/react"; +import { render, screen } from '@testing-library/react'; -import { KeyValueTable, KeyValueTableRow } from "./key-value-table"; +import { KeyValueTable, KeyValueTableRow } from './key-value-table'; const props = { - title: "Title", + title: 'Title', }; -it("Renders the correct elements", () => { +it('Renders the correct elements', () => { const { container } = render( @@ -22,20 +22,20 @@ it("Renders the correct elements", () => { expect(screen.getByText(props.title)).toBeInTheDocument(); - expect(container.querySelector(".key-value-table")).toBeInTheDocument(); - expect(container.querySelectorAll(".key-value-table__row")).toHaveLength(2); + expect(container.querySelector('.key-value-table')).toBeInTheDocument(); + expect(container.querySelectorAll('.key-value-table__row')).toHaveLength(2); - const rows = container.querySelectorAll(".key-value-table__row"); + const rows = container.querySelectorAll('.key-value-table__row'); // Row 1 - expect(rows[0].firstChild).toHaveTextContent("My label"); - expect(rows[0].children[1]).toHaveTextContent("My value"); + expect(rows[0].firstChild).toHaveTextContent('My label'); + expect(rows[0].children[1]).toHaveTextContent('My value'); // Row 2 - expect(rows[1].firstChild).toHaveTextContent("My label 2"); - expect(rows[1].children[1]).toHaveTextContent("My value 2"); + expect(rows[1].firstChild).toHaveTextContent('My label 2'); + expect(rows[1].children[1]).toHaveTextContent('My value 2'); }); -it("Applies numeric class if prop is passed", () => { +it('Applies numeric class if prop is passed', () => { render( @@ -45,12 +45,12 @@ it("Applies numeric class if prop is passed", () => { ); - expect(screen.getByTestId("key-value-table")).toHaveClass( - "key-value-table--numerical" + expect(screen.getByTestId('key-value-table')).toHaveClass( + 'key-value-table--numerical' ); }); -it("Applies muted class if prop is passed", () => { +it('Applies muted class if prop is passed', () => { render( @@ -60,7 +60,7 @@ it("Applies muted class if prop is passed", () => { ); - expect(screen.getByTestId("key-value-table")).toHaveClass( - "key-value-table--muted" + expect(screen.getByTestId('key-value-table')).toHaveClass( + 'key-value-table--muted' ); }); diff --git a/apps/token/src/components/key-value-table/key-value-table.tsx b/apps/token/src/components/key-value-table/key-value-table.tsx index 9f9f840b8..dcad848cd 100644 --- a/apps/token/src/components/key-value-table/key-value-table.tsx +++ b/apps/token/src/components/key-value-table/key-value-table.tsx @@ -1,6 +1,6 @@ -import "./key-value-table.scss"; +import './key-value-table.scss'; -import * as React from "react"; +import * as React from 'react'; export interface KeyValueTableProps extends React.HTMLAttributes { @@ -24,10 +24,10 @@ export const KeyValueTable = ({ {children}
@@ -49,7 +49,7 @@ export const KeyValueTableRow = ({ return ( {children[0]} {children[1]} diff --git a/apps/token/src/components/loader/index.ts b/apps/token/src/components/loader/index.ts index ee5286f0f..3f3b9e663 100644 --- a/apps/token/src/components/loader/index.ts +++ b/apps/token/src/components/loader/index.ts @@ -1 +1 @@ -export * from "./loader"; +export * from './loader'; diff --git a/apps/token/src/components/loader/loader.tsx b/apps/token/src/components/loader/loader.tsx index 321a96408..9db8ba170 100644 --- a/apps/token/src/components/loader/loader.tsx +++ b/apps/token/src/components/loader/loader.tsx @@ -1,6 +1,6 @@ -import "./loader.scss"; +import './loader.scss'; -import React from "react"; +import React from 'react'; interface LoaderProps { invert?: boolean; @@ -8,7 +8,7 @@ interface LoaderProps { export const Loader = ({ invert = false }: LoaderProps) => { const [, forceRender] = React.useState(false); - const className = ["loader", invert ? "loader--dark" : ""].join(" "); + const className = ['loader', invert ? 'loader--dark' : ''].join(' '); React.useEffect(() => { const interval = setInterval(() => { diff --git a/apps/token/src/components/locked-progress/index.ts b/apps/token/src/components/locked-progress/index.ts index 7f5d99f73..7df025e9a 100644 --- a/apps/token/src/components/locked-progress/index.ts +++ b/apps/token/src/components/locked-progress/index.ts @@ -1 +1 @@ -export { LockedProgress } from "./locked-progress"; +export { LockedProgress } from './locked-progress'; diff --git a/apps/token/src/components/locked-progress/locked-progress.scss b/apps/token/src/components/locked-progress/locked-progress.scss index 5d9e2a625..eb03a4d72 100644 --- a/apps/token/src/components/locked-progress/locked-progress.scss +++ b/apps/token/src/components/locked-progress/locked-progress.scss @@ -1,5 +1,5 @@ -@import "../../styles/colors"; -@import "../../styles/fonts"; +@import '../../styles/colors'; +@import '../../styles/fonts'; .tranche-item { &__progress { diff --git a/apps/token/src/components/modal/index.ts b/apps/token/src/components/modal/index.ts index 031608e25..133aa7420 100644 --- a/apps/token/src/components/modal/index.ts +++ b/apps/token/src/components/modal/index.ts @@ -1 +1 @@ -export * from "./modal"; +export * from './modal'; diff --git a/apps/token/src/components/modal/modal.scss b/apps/token/src/components/modal/modal.scss index f27750f27..52b33e750 100644 --- a/apps/token/src/components/modal/modal.scss +++ b/apps/token/src/components/modal/modal.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .modal { left: calc(50vw - 200px); diff --git a/apps/token/src/components/modal/modal.tsx b/apps/token/src/components/modal/modal.tsx index 284a02136..81a34d050 100644 --- a/apps/token/src/components/modal/modal.tsx +++ b/apps/token/src/components/modal/modal.tsx @@ -1,6 +1,6 @@ -import "./modal.scss"; +import './modal.scss'; -import React from "react"; +import React from 'react'; interface ModalProps { children: React.ReactNode; diff --git a/apps/token/src/components/nav/index.ts b/apps/token/src/components/nav/index.ts index 870d3745c..38d674589 100644 --- a/apps/token/src/components/nav/index.ts +++ b/apps/token/src/components/nav/index.ts @@ -1 +1 @@ -export * from "./nav"; +export * from './nav'; diff --git a/apps/token/src/components/nav/nav.scss b/apps/token/src/components/nav/nav.scss index cda5a4dd9..809915311 100644 --- a/apps/token/src/components/nav/nav.scss +++ b/apps/token/src/components/nav/nav.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .nav { padding: 20px; @@ -28,7 +28,7 @@ &--inverted { border-bottom: none; - background: $vega-yellow3 url("../../images/clouds.png"); + background: $vega-yellow3 url('../../images/clouds.png'); background-repeat: no-repeat; background-size: cover; background-position: 0 -300px; @@ -85,7 +85,7 @@ } &__drawer { - background-image: url("../../images/banner.png"); + background-image: url('../../images/banner.png'); display: flex; flex-flow: column nowrap; justify-content: space-between; diff --git a/apps/token/src/components/page-templates/template-sidebar.scss b/apps/token/src/components/page-templates/template-sidebar.scss index 64dec56c7..404d8b0ae 100644 --- a/apps/token/src/components/page-templates/template-sidebar.scss +++ b/apps/token/src/components/page-templates/template-sidebar.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .template-sidebar { border-bottom: 1px solid $white; @@ -15,7 +15,7 @@ aside { padding: 20px; - background-image: url("../../images/banner.png"); + background-image: url('../../images/banner.png'); background-size: 100% auto; } diff --git a/apps/token/src/components/page-templates/template-sidebar.tsx b/apps/token/src/components/page-templates/template-sidebar.tsx index d45a4f06a..656b38f69 100644 --- a/apps/token/src/components/page-templates/template-sidebar.tsx +++ b/apps/token/src/components/page-templates/template-sidebar.tsx @@ -1,8 +1,8 @@ -import "./template-sidebar.scss"; +import './template-sidebar.scss'; -import React from "react"; +import React from 'react'; -import { Nav } from "../nav"; +import { Nav } from '../nav'; export interface TemplateSidebarProps { children: React.ReactNode; diff --git a/apps/token/src/components/splash-error/index.ts b/apps/token/src/components/splash-error/index.ts index 0e0346e17..9abdf3e36 100644 --- a/apps/token/src/components/splash-error/index.ts +++ b/apps/token/src/components/splash-error/index.ts @@ -1 +1 @@ -export * from "./splash-error"; +export * from './splash-error'; diff --git a/apps/token/src/components/splash-error/splash-error.scss b/apps/token/src/components/splash-error/splash-error.scss index 2df17b385..b4e47c055 100644 --- a/apps/token/src/components/splash-error/splash-error.scss +++ b/apps/token/src/components/splash-error/splash-error.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .splash-error__icon { display: flex; diff --git a/apps/token/src/components/splash-error/splash-error.tsx b/apps/token/src/components/splash-error/splash-error.tsx index 6c8ca2087..e1235e008 100644 --- a/apps/token/src/components/splash-error/splash-error.tsx +++ b/apps/token/src/components/splash-error/splash-error.tsx @@ -1,6 +1,6 @@ -import "./splash-error.scss"; +import './splash-error.scss'; -import { useTranslation } from "react-i18next"; +import { useTranslation } from 'react-i18next'; export const SplashError = () => { const { t } = useTranslation(); @@ -10,7 +10,7 @@ export const SplashError = () => { - {t("networkDown")} + {t('networkDown')} ); }; diff --git a/apps/token/src/components/splash-loader/index.ts b/apps/token/src/components/splash-loader/index.ts index 05799d18e..1a930a632 100644 --- a/apps/token/src/components/splash-loader/index.ts +++ b/apps/token/src/components/splash-loader/index.ts @@ -1 +1 @@ -export * from "./splash-loader"; +export * from './splash-loader'; diff --git a/apps/token/src/components/splash-loader/splash-loader.scss b/apps/token/src/components/splash-loader/splash-loader.scss index 2dbfb3c06..e1c9ff869 100644 --- a/apps/token/src/components/splash-loader/splash-loader.scss +++ b/apps/token/src/components/splash-loader/splash-loader.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .loading { display: flex; diff --git a/apps/token/src/components/splash-loader/splash-loader.tsx b/apps/token/src/components/splash-loader/splash-loader.tsx index ff1f7bae1..3ffd85c61 100644 --- a/apps/token/src/components/splash-loader/splash-loader.tsx +++ b/apps/token/src/components/splash-loader/splash-loader.tsx @@ -1,8 +1,8 @@ -import "./splash-loader.scss"; +import './splash-loader.scss'; -import React from "react"; +import React from 'react'; -export const SplashLoader = ({ text = "Loading" }: { text?: string }) => { +export const SplashLoader = ({ text = 'Loading' }: { text?: string }) => { const [, forceRender] = React.useState(false); React.useEffect(() => { const interval = setInterval(() => { diff --git a/apps/token/src/components/stateful-button/index.ts b/apps/token/src/components/stateful-button/index.ts index 3afd91b04..ff8cee77e 100644 --- a/apps/token/src/components/stateful-button/index.ts +++ b/apps/token/src/components/stateful-button/index.ts @@ -1 +1 @@ -export * from "./stateful-button"; +export * from './stateful-button'; diff --git a/apps/token/src/components/stateful-button/stateful-button.scss b/apps/token/src/components/stateful-button/stateful-button.scss index aa4126c57..7935332c8 100644 --- a/apps/token/src/components/stateful-button/stateful-button.scss +++ b/apps/token/src/components/stateful-button/stateful-button.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .stateful-button { display: flex; diff --git a/apps/token/src/components/syntax-highlighter/index.tsx b/apps/token/src/components/syntax-highlighter/index.tsx index 2f4d2287e..df272a07f 100644 --- a/apps/token/src/components/syntax-highlighter/index.tsx +++ b/apps/token/src/components/syntax-highlighter/index.tsx @@ -1 +1 @@ -export { SyntaxHighlighter } from "./syntax-highlighter"; +export { SyntaxHighlighter } from './syntax-highlighter'; diff --git a/apps/token/src/components/syntax-highlighter/syntax-highlighter.test.tsx b/apps/token/src/components/syntax-highlighter/syntax-highlighter.test.tsx index 1420aa7ea..30970c51f 100644 --- a/apps/token/src/components/syntax-highlighter/syntax-highlighter.test.tsx +++ b/apps/token/src/components/syntax-highlighter/syntax-highlighter.test.tsx @@ -1,11 +1,11 @@ -import { render, screen } from "@testing-library/react"; +import { render, screen } from '@testing-library/react'; -import { SyntaxHighlighter } from "./syntax-highlighter"; +import { SyntaxHighlighter } from './syntax-highlighter'; -it("Renders test id and content", () => { +it('Renders test id and content', () => { const data = {}; render(); - expect(screen.getByTestId("syntax-highlighter")).toHaveTextContent( + expect(screen.getByTestId('syntax-highlighter')).toHaveTextContent( JSON.stringify(data, null, 2) ); }); diff --git a/apps/token/src/components/token-input/index.tsx b/apps/token/src/components/token-input/index.tsx index 16080a91e..63f7cfde6 100644 --- a/apps/token/src/components/token-input/index.tsx +++ b/apps/token/src/components/token-input/index.tsx @@ -1 +1 @@ -export * from "./token-input"; +export * from './token-input'; diff --git a/apps/token/src/components/transaction-button/index.ts b/apps/token/src/components/transaction-button/index.ts index c8ff03de7..de6ffbb9b 100644 --- a/apps/token/src/components/transaction-button/index.ts +++ b/apps/token/src/components/transaction-button/index.ts @@ -1 +1 @@ -export * from "./transaction-button"; +export * from './transaction-button'; diff --git a/apps/token/src/components/transaction-button/transaction-button.scss b/apps/token/src/components/transaction-button/transaction-button.scss index 84020bccb..6c3b64a9c 100644 --- a/apps/token/src/components/transaction-button/transaction-button.scss +++ b/apps/token/src/components/transaction-button/transaction-button.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .transaction-button { margin-bottom: 20px; diff --git a/apps/token/src/components/transaction-callout/index.ts b/apps/token/src/components/transaction-callout/index.ts index 26fbb77c2..cf493381b 100644 --- a/apps/token/src/components/transaction-callout/index.ts +++ b/apps/token/src/components/transaction-callout/index.ts @@ -1 +1 @@ -export { TransactionCallout } from "./transaction-callout"; +export { TransactionCallout } from './transaction-callout'; diff --git a/apps/token/src/components/transactions-modal/index.ts b/apps/token/src/components/transactions-modal/index.ts index e40ee751e..26faa43a5 100644 --- a/apps/token/src/components/transactions-modal/index.ts +++ b/apps/token/src/components/transactions-modal/index.ts @@ -1 +1 @@ -export * from "./transactions-modal"; +export * from './transactions-modal'; diff --git a/apps/token/src/components/transactions-modal/transactions-modal.scss b/apps/token/src/components/transactions-modal/transactions-modal.scss index 24f4e74be..ac3acd2ec 100644 --- a/apps/token/src/components/transactions-modal/transactions-modal.scss +++ b/apps/token/src/components/transactions-modal/transactions-modal.scss @@ -1,4 +1,4 @@ -@import "../../styles/colors"; +@import '../../styles/colors'; .transactions-modal { &__table { diff --git a/apps/token/src/components/vega-wallet-container/index.ts b/apps/token/src/components/vega-wallet-container/index.ts index 9566cdba4..58aa4c53c 100644 --- a/apps/token/src/components/vega-wallet-container/index.ts +++ b/apps/token/src/components/vega-wallet-container/index.ts @@ -1 +1 @@ -export * from "./vega-wallet-container"; +export * from './vega-wallet-container'; diff --git a/apps/token/src/components/vega-wallet/download-wallet-prompt.tsx b/apps/token/src/components/vega-wallet/download-wallet-prompt.tsx index 90045d921..30514439c 100644 --- a/apps/token/src/components/vega-wallet/download-wallet-prompt.tsx +++ b/apps/token/src/components/vega-wallet/download-wallet-prompt.tsx @@ -1,12 +1,12 @@ -import { useTranslation } from "react-i18next"; +import { useTranslation } from 'react-i18next'; -import { Colors, Links } from "../../config"; +import { Colors, Links } from '../../config'; export const DownloadWalletPrompt = () => { const { t } = useTranslation(); return ( <> -

{t("getWallet")}

+

{t('getWallet')}

{ target="_blank" rel="noreferrer" > - {t("readGuide")} + {t('readGuide')}

@@ -24,7 +24,7 @@ export const DownloadWalletPrompt = () => { target="_blank" rel="noreferrer" > - {t("downloadWallet")} + {t('downloadWallet')}

diff --git a/apps/token/src/components/vega-wallet/index.ts b/apps/token/src/components/vega-wallet/index.ts index b481b6340..88dba6ac2 100644 --- a/apps/token/src/components/vega-wallet/index.ts +++ b/apps/token/src/components/vega-wallet/index.ts @@ -1 +1 @@ -export * from "./vega-wallet"; +export * from './vega-wallet'; diff --git a/apps/token/src/components/vega-wallet/vega-wallet.scss b/apps/token/src/components/vega-wallet/vega-wallet.scss index e7a5b1567..7ee58985d 100644 --- a/apps/token/src/components/vega-wallet/vega-wallet.scss +++ b/apps/token/src/components/vega-wallet/vega-wallet.scss @@ -1,5 +1,5 @@ -@import "../../styles/colors"; -@import "../../styles/fonts"; +@import '../../styles/colors'; +@import '../../styles/fonts'; .vega-wallet { &__connect { diff --git a/apps/token/src/components/wallet-card/index.ts b/apps/token/src/components/wallet-card/index.ts index 55aab3fb2..930607ace 100644 --- a/apps/token/src/components/wallet-card/index.ts +++ b/apps/token/src/components/wallet-card/index.ts @@ -1 +1 @@ -export * from "./wallet-card"; +export * from './wallet-card'; diff --git a/apps/token/src/components/web3-connector/index.ts b/apps/token/src/components/web3-connector/index.ts index 4abc5a133..1664c8d42 100644 --- a/apps/token/src/components/web3-connector/index.ts +++ b/apps/token/src/components/web3-connector/index.ts @@ -1 +1 @@ -export * from "./web3-connector"; +export * from './web3-connector'; diff --git a/apps/token/src/config/colors.ts b/apps/token/src/config/colors.ts index 820096197..7ecdfe43d 100644 --- a/apps/token/src/config/colors.ts +++ b/apps/token/src/config/colors.ts @@ -1,24 +1,24 @@ export const Colors = { - WHITE: "#FFF", - RED: "#ED1515", - PINK: "#ff2d5e", - GREEN: "#26ff8a", - TEXT: "#c7c7c7", + WHITE: '#FFF', + RED: '#ED1515', + PINK: '#ff2d5e', + GREEN: '#26ff8a', + TEXT: '#c7c7c7', - BLACK: "#000", - DEEMPHASISE: "#8a9ba8", - GRAY_DARK_1: "#292929", - GRAY_DARK_2: "#333", - GRAY: "#494949", - GRAY_LIGHT: "#ccc", - GRAY_LIGHT_1: "#6e6e6e", - GREEN_DARK: "#246340", // Same as GREEN_TRANSPARENT given a background of #1f1f1f - GREEN_TRANSPARENT: "rgba(38, 255, 138, 0.3)", - RED_TRANSPARENT: "rgba(255, 38, 65, 0.3)", - TRANSPARENT: "rgba(0,0,0,0)", + BLACK: '#000', + DEEMPHASISE: '#8a9ba8', + GRAY_DARK_1: '#292929', + GRAY_DARK_2: '#333', + GRAY: '#494949', + GRAY_LIGHT: '#ccc', + GRAY_LIGHT_1: '#6e6e6e', + GREEN_DARK: '#246340', // Same as GREEN_TRANSPARENT given a background of #1f1f1f + GREEN_TRANSPARENT: 'rgba(38, 255, 138, 0.3)', + RED_TRANSPARENT: 'rgba(255, 38, 65, 0.3)', + TRANSPARENT: 'rgba(0,0,0,0)', - VEGA_RED: "#ff261a", - VEGA_ORANGE: "#d9822b", - VEGA_GREEN: "#26ff8a", - VEGA_YELLOW: "#daff0d", + VEGA_RED: '#ff261a', + VEGA_ORANGE: '#d9822b', + VEGA_GREEN: '#26ff8a', + VEGA_YELLOW: '#daff0d', }; diff --git a/apps/token/src/config/index.ts b/apps/token/src/config/index.ts index acf44a9bd..9610abf4b 100644 --- a/apps/token/src/config/index.ts +++ b/apps/token/src/config/index.ts @@ -1,6 +1,6 @@ -export * from "./colors"; -export * from "./flags"; -export * from "./ethereum"; -export * from "./links"; -export * from "./network-params"; -export * from "./vega"; +export * from './colors'; +export * from './flags'; +export * from './ethereum'; +export * from './links'; +export * from './network-params'; +export * from './vega'; diff --git a/apps/token/src/config/links.ts b/apps/token/src/config/links.ts index 0fe63ead2..246818508 100644 --- a/apps/token/src/config/links.ts +++ b/apps/token/src/config/links.ts @@ -1,15 +1,15 @@ export const Links = { - WALLET_RELEASES: "https://github.com/vegaprotocol/vegawallet-desktop/releases", - WALLET_GUIDE: - "https://docs.vega.xyz/docs/tools/vega-wallet", - SUSHI_PAIRS: "https://analytics.sushi.com/pairs/", - SUSHI_ONSEN_MENU: "https://app.sushi.com/farm", + WALLET_RELEASES: + 'https://github.com/vegaprotocol/vegawallet-desktop/releases', + WALLET_GUIDE: 'https://docs.vega.xyz/docs/tools/vega-wallet', + SUSHI_PAIRS: 'https://analytics.sushi.com/pairs/', + SUSHI_ONSEN_MENU: 'https://app.sushi.com/farm', SUSHI_ONSEN_WHAT_IS: - "https://docs.sushi.com/products/yield-farming/what-is-onsen", - SUSHI_ONSEN_FAQ: "https://docs.sushi.com/faq-1/onsen-faq", - FEEDBACK: "https://github.com/vegaprotocol/feedback/discussions", - GITHUB: "https://github.com/vegaprotocol/token-frontend", - DISCORD: "https://vega.xyz/discord", + 'https://docs.sushi.com/products/yield-farming/what-is-onsen', + SUSHI_ONSEN_FAQ: 'https://docs.sushi.com/faq-1/onsen-faq', + FEEDBACK: 'https://github.com/vegaprotocol/feedback/discussions', + GITHUB: 'https://github.com/vegaprotocol/token-frontend', + DISCORD: 'https://vega.xyz/discord', STAKING_GUIDE: - "https://docs.vega.xyz/docs/concepts/vega-chain/#staking-on-vega", + 'https://docs.vega.xyz/docs/concepts/vega-chain/#staking-on-vega', }; diff --git a/apps/token/src/config/network-params.ts b/apps/token/src/config/network-params.ts index 664949948..65d4c7bde 100644 --- a/apps/token/src/config/network-params.ts +++ b/apps/token/src/config/network-params.ts @@ -1,21 +1,21 @@ export const NetworkParams = { - ETHEREUM_CONFIG: "blockchains.ethereumConfig", - REWARD_ASSET: "reward.asset", - REWARD_PAYOUT_DURATION: "reward.staking.delegation.payoutDelay", + ETHEREUM_CONFIG: 'blockchains.ethereumConfig', + REWARD_ASSET: 'reward.asset', + REWARD_PAYOUT_DURATION: 'reward.staking.delegation.payoutDelay', GOV_UPDATE_MARKET_REQUIRED_MAJORITY: - "governance.proposal.updateMarket.requiredMajority", + 'governance.proposal.updateMarket.requiredMajority', GOV_UPDATE_MARKET_REQUIRED_PARTICIPATION: - "governance.proposal.updateMarket.requiredParticipation", + 'governance.proposal.updateMarket.requiredParticipation', GOV_NEW_MARKET_REQUIRED_MAJORITY: - "governance.proposal.market.requiredMajority", + 'governance.proposal.market.requiredMajority', GOV_NEW_MARKET_REQUIRED_PARTICIPATION: - "governance.proposal.market.requiredParticipation", - GOV_ASSET_REQUIRED_MAJORITY: "governance.proposal.asset.requiredMajority", + 'governance.proposal.market.requiredParticipation', + GOV_ASSET_REQUIRED_MAJORITY: 'governance.proposal.asset.requiredMajority', GOV_ASSET_REQUIRED_PARTICIPATION: - "governance.proposal.asset.requiredParticipation", + 'governance.proposal.asset.requiredParticipation', GOV_UPDATE_NET_PARAM_REQUIRED_MAJORITY: - "governance.proposal.updateNetParam.requiredMajority", + 'governance.proposal.updateNetParam.requiredMajority', GOV_UPDATE_NET_PARAM_REQUIRED_PARTICIPATION: - "governance.proposal.updateNetParam.requiredParticipation", - VALIDATOR_DELEGATION_MIN_AMOUNT: "validators.delegation.minAmount", + 'governance.proposal.updateNetParam.requiredParticipation', + VALIDATOR_DELEGATION_MIN_AMOUNT: 'validators.delegation.minAmount', }; diff --git a/apps/token/src/hooks/use-document-title.ts b/apps/token/src/hooks/use-document-title.ts index 4d25ab242..29120d9d5 100644 --- a/apps/token/src/hooks/use-document-title.ts +++ b/apps/token/src/hooks/use-document-title.ts @@ -1,7 +1,7 @@ -import React from "react"; +import React from 'react'; export function useDocumentTitle(name?: string) { - const base = "VEGA token"; + const base = 'VEGA token'; React.useEffect(() => { if (name) { diff --git a/apps/token/src/hooks/use-ethereum-config.ts b/apps/token/src/hooks/use-ethereum-config.ts index da199edce..00e833b6e 100644 --- a/apps/token/src/hooks/use-ethereum-config.ts +++ b/apps/token/src/hooks/use-ethereum-config.ts @@ -1,8 +1,8 @@ -import * as Sentry from "@sentry/react"; -import React from "react"; +import * as Sentry from '@sentry/react'; +import React from 'react'; -import { NetworkParams } from "../config"; -import { useNetworkParam } from "./use-network-param"; +import { NetworkParams } from '../config'; +import { useNetworkParam } from './use-network-param'; export const useEthereumConfig = () => { const { data: ethereumConfigJSON, loading } = useNetworkParam([ @@ -22,7 +22,7 @@ export const useEthereumConfig = () => { const config = JSON.parse(configJson); return config; } catch { - Sentry.captureMessage("Ethereum config JSON is invalid"); + Sentry.captureMessage('Ethereum config JSON is invalid'); return null; } }, [ethereumConfigJSON, loading]); diff --git a/apps/token/src/hooks/use-fetch.ts b/apps/token/src/hooks/use-fetch.ts index 1979b3843..84f3207e2 100644 --- a/apps/token/src/hooks/use-fetch.ts +++ b/apps/token/src/hooks/use-fetch.ts @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useReducer, useRef } from "react"; +import { useCallback, useEffect, useReducer, useRef } from 'react'; interface State { data?: T; @@ -7,9 +7,9 @@ interface State { } enum ActionType { - LOADING = "LOADING", - ERROR = "ERROR", - FETCHED = "FETCHED", + LOADING = 'LOADING', + ERROR = 'ERROR', + FETCHED = 'FETCHED', } // discriminated union type @@ -57,7 +57,7 @@ function useFetch( } const data = (await response.json()) as T; - if ("error" in data) { + if ('error' in data) { // @ts-ignore - data.error throw new Error(data.error); } diff --git a/apps/token/src/hooks/use-network-param.tsx b/apps/token/src/hooks/use-network-param.tsx index d9fc8c7a3..a8536ccdb 100644 --- a/apps/token/src/hooks/use-network-param.tsx +++ b/apps/token/src/hooks/use-network-param.tsx @@ -1,7 +1,7 @@ -import { useQuery } from "@apollo/client"; -import { gql } from "@apollo/client"; +import { useQuery } from '@apollo/client'; +import { gql } from '@apollo/client'; -import type { NetworkParams } from "./__generated__/NetworkParams"; +import type { NetworkParams } from './__generated__/NetworkParams'; export const NETWORK_PARAMS_QUERY = gql` query NetworkParams { diff --git a/apps/token/src/hooks/use-pending-transactions.ts b/apps/token/src/hooks/use-pending-transactions.ts index 6cc09ce49..b5fd166d7 100644 --- a/apps/token/src/hooks/use-pending-transactions.ts +++ b/apps/token/src/hooks/use-pending-transactions.ts @@ -1,6 +1,6 @@ -import React from "react"; +import React from 'react'; -import { useContracts } from "../contexts/contracts/contracts-context"; +import { useContracts } from '../contexts/contracts/contracts-context'; export const usePendingTransactions = () => { const { transactions } = useContracts(); diff --git a/apps/token/src/hooks/use-previous.ts b/apps/token/src/hooks/use-previous.ts index 1647994d0..da91455a2 100644 --- a/apps/token/src/hooks/use-previous.ts +++ b/apps/token/src/hooks/use-previous.ts @@ -1,4 +1,4 @@ -import React from "react"; +import React from 'react'; export function usePrevious(value: T): T | undefined { const ref = React.useRef(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": [] }