Skip to content

Commit

Permalink
Remove jsx-runtime alias for React 18 (polkadot-js#7431)
Browse files Browse the repository at this point in the history
* Remove jsx-runtime alias for React 18

* Adjust lint
  • Loading branch information
jacogr authored Apr 23, 2022
1 parent d4b1c11 commit e976ab4
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 115 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
"@babel/runtime": "^7.17.9",
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.1.25",
"@polkadot/dev": "^0.66.5",
"@types/chart.js": "^2.9.36",
"@polkadot/dev": "^0.66.9",
"@types/chart.js": "^2.9.37",
"@types/file-saver": "^2.0.5",
"@types/jest": "^27.4.1",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^18.0.1",
"@types/react-dom": "^18.0.2",
"@types/react-router-dom": "^5.3.3",
"@types/store": "^2.0.2",
"@types/styled-components": "^5.1.25",
Expand Down
12 changes: 6 additions & 6 deletions packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ const spec: Record<string, OverrideBundleDefinition> = {
'ares-odyssey': aresParachain,
asgard: bifrostAsgard,
astar,
automata: automata,
automata,
basilisk,
beresheet,
bifrost: bifrost,
bifrost,
'bifrost-parachain': bifrostParachain,
'bitcountry-node': bitcountry,
'bitcountry-parachain': bitcountryParachain,
Expand Down Expand Up @@ -177,7 +177,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'encointer-node-teeproxy': encointerNodeTeeproxy,
'encointer-parachain': encointerPara,
fantour,
galital: galital,
galital,
'galital-collator': galitalParachain,
gamepower,
'hack-hydra-dx': hydrate,
Expand Down Expand Up @@ -223,7 +223,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'node-moonbeam': moonbeam,
'node-polkadex': polkadex,
'nodle-chain': nodle,
opal: opal,
opal,
opportunity,
'origintrail-parachain': origintrail,
parallel,
Expand All @@ -236,7 +236,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
polymesh,
'pontem-node': pontem,
prism,
quartz: quartz,
quartz,
realis,
'riochain-runtime': riochain,
robonomics,
Expand Down Expand Up @@ -267,7 +267,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
vodka,
'web3games-node': web3games,
'zcloak-network': zCloak,
zeitgeist: zeitgeist
zeitgeist
};

export default spec;
2 changes: 1 addition & 1 deletion packages/apps-config/src/endpoints/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('endpopints do not contain emojis or all uppercase', (): void => {
.map(({ text, textBy, value }): Endpoint => ({
name: text as string,
provider: textBy,
value: value
value
}))
.forEach(({ name, provider }) =>
it(`${name}:: ${provider}`, (): void => {
Expand Down
8 changes: 4 additions & 4 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,11 @@ export const namedLogos: Record<string, unknown> = {
mathchain: nodeMath,
minix: nodeMinix,
moonbaseAlpha: moonbase,
moonbeam: moonbeam,
moonriver: moonriver,
moonbeam,
moonriver,
moonrock: nodeMoonrock,
moonshadow: moonshadow,
mybank: mybank,
moonshadow,
mybank,
neumann: oak,
nftmart: nodeNFTMart,
nodle: nodeNodle,
Expand Down
6 changes: 3 additions & 3 deletions packages/apps-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"dependencies": {
"@babel/core": "^7.17.9",
"@babel/polyfill": "^7.12.1",
"@polkadot/dev": "^0.66.5",
"@polkadot/dev": "^0.66.9",
"@polkadot/react-components": "^0.112.2-47",
"electron-log": "^4.4.6",
"electron-updater": "^4.6.5"
},
"devDependencies": {
"@types/react-dom": "^18.0.1",
"@types/react-dom": "^18.0.2",
"@types/tmp": "^0.2.3",
"babel-loader": "^8.2.4",
"babel-loader": "^8.2.5",
"copy-webpack-plugin": "^10.2.4",
"html-webpack-plugin": "^5.5.0",
"react": "^18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@babel/runtime": "^7.17.9",
"@polkadot/apps-config": "^0.112.2-47",
"@polkadot/apps-routing": "^0.112.2-47",
"@polkadot/dev": "^0.66.5",
"@polkadot/dev": "^0.66.9",
"@polkadot/react-api": "^0.112.2-47",
"@polkadot/react-components": "^0.112.2-47",
"@polkadot/react-hooks": "^0.112.2-47",
Expand All @@ -31,7 +31,7 @@
"devDependencies": {
"@types/punycode": "^2.1.0",
"assert": "^2.0.0",
"babel-loader": "^8.2.4",
"babel-loader": "^8.2.5",
"buffer": "^6.0.3",
"copy-webpack-plugin": "^10.2.4",
"crypto-browserify": "^3.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/page-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@babel/runtime": "^7.17.9",
"@polkadot/hw-ledger": "^9.0.1",
"@polkadot/phishing": "^0.11.58",
"@polkadot/phishing": "^0.11.77",
"@polkadot/react-components": "^0.112.2-47",
"@polkadot/react-hooks": "^0.112.2-47",
"@polkadot/util": "^9.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/page-addresses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"@testing-library/react": "^13.1.1",
"testcontainers": "^8.7.1"
"testcontainers": "^8.7.2"
}
}
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"react-dropzone": "^11.7.1",
"react-i18next": "^11.16.7",
"react-is": "^18.0.0",
"react-markdown": "^8.0.2",
"react-markdown": "^8.0.3",
"react-router": "^5.3.1",
"react-router-dom": "^5.3.1",
"react-tooltip": "^4.2.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": "0.112.2-47",
"dependencies": {
"@testing-library/react": "^13.1.1",
"testcontainers": "^8.7.1"
"testcontainers": "^8.7.2"
},
"devDependencies": {
"@polkadot/types-support": "^8.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export function proposalFactory (api: ApiPromise): ProposalFactory {
hash: aHash(),
proposal: registry.createType('Proposal', extrinsic),
votes: registry.createType('Votes', {
ayes: ayes,
ayes,
index: 0,
nays: nays,
nays,
threshold: 4
})
})
Expand Down
6 changes: 3 additions & 3 deletions packages/test-support/src/utils/accountDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ class MockAccountHooks {
});

this.accountsMap[address] = {
balance: balance,
info: info,
staking: staking
balance,
info,
staking
};
}
}
Expand Down
Loading

0 comments on commit e976ab4

Please sign in to comment.