Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React router v6 update #2268

Merged
merged 6 commits into from
Jul 17, 2024
Merged

React router v6 update #2268

merged 6 commits into from
Jul 17, 2024

Conversation

kattylucy
Copy link
Contributor

@kattylucy kattylucy commented Jul 5, 2024

  • Upgrade react-router-dom

#2007

  • [ x ] Dev
  • [ x ] Dev
  • Designer
  • Product

The changes here impact the app entirely, if we have a component using react-route or react-router-dom it will be affecting. I did my best to test the app but would be nice to have pair of extra eyes.

NOTE: when switching branches you might encounter issues with the cache of node-modules. do run the following command to fix the issue:

  1. rm -rf node_modules
  2. yarn install
  3. yarn start

Copy link

socket-security bot commented Jul 6, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@adraffy/ens-normalize@1.10.0 None 0 441 kB adraffy
npm/@ampproject/remapping@2.3.0 None 0 78.9 kB jridgewell
npm/@aw-web-design/x-default-browser@1.4.126 shell Transitive: filesystem +3 105 kB the-code-monkey
npm/@babel/compat-data@7.23.5 None 0 64.6 kB nicolo-ribaudo
npm/@babel/core@7.24.0 environment, filesystem, unsafe +8 1.71 MB nicolo-ribaudo
npm/@babel/eslint-parser@7.23.10 unsafe +1 143 kB nicolo-ribaudo
npm/@babel/generator@7.23.6 None +1 524 kB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 None +3 151 kB nicolo-ribaudo
npm/@babel/helper-function-name@7.24.7 Transitive: environment +6 2.07 MB nicolo-ribaudo
npm/@babel/helper-hoist-variables@7.24.7 None +1 10.5 kB nicolo-ribaudo
npm/@babel/helper-module-imports@7.22.15 None 0 54.4 kB nicolo-ribaudo
npm/@babel/helper-validator-option@7.23.5 None 0 11.7 kB nicolo-ribaudo
npm/@babel/highlight@7.23.4 None +1 67.5 kB nicolo-ribaudo
npm/@babel/parser@7.24.0 None 0 1.88 MB nicolo-ribaudo
npm/@babel/runtime@7.24.0 None +1 290 kB nicolo-ribaudo
npm/@babel/template@7.24.0 None +1 92.2 kB nicolo-ribaudo
npm/@babel/traverse@7.24.8 Transitive: environment +9 3.65 MB nicolo-ribaudo
npm/@babel/types@7.24.0 environment +3 2.5 MB nicolo-ribaudo
npm/@emotion/is-prop-valid@1.2.2 environment 0 29.2 kB emotion-release-bot
npm/@esbuild/android-arm@0.16.17 None 0 10.9 MB evanw
npm/@esbuild/android-arm64@0.16.17 None 0 9.04 MB evanw
npm/@esbuild/android-x64@0.16.17 None 0 10.9 MB evanw
npm/@esbuild/darwin-arm64@0.16.17 None 0 8.86 MB evanw
npm/@esbuild/darwin-x64@0.16.17 None 0 9.23 MB evanw
npm/@esbuild/freebsd-arm64@0.16.17 None 0 8.19 MB evanw
npm/@esbuild/freebsd-x64@0.16.17 None 0 8.75 MB evanw
npm/@esbuild/linux-arm@0.16.17 None 0 8.32 MB evanw
npm/@esbuild/linux-arm64@0.16.17 None 0 8.19 MB evanw
npm/@esbuild/linux-ia32@0.16.17 None 0 8.31 MB evanw
npm/@esbuild/linux-loong64@0.16.17 None 0 8.59 MB evanw
npm/@esbuild/linux-mips64el@0.16.17 None 0 9.5 MB evanw
npm/@esbuild/linux-ppc64@0.16.17 None 0 8.32 MB evanw
npm/@esbuild/linux-riscv64@0.16.17 None 0 8.39 MB evanw
npm/@esbuild/linux-s390x@0.16.17 None 0 9.04 MB evanw
npm/@esbuild/linux-x64@0.16.17 None 0 8.76 MB evanw
npm/@esbuild/netbsd-x64@0.16.17 None 0 8.73 MB evanw
npm/@esbuild/openbsd-x64@0.16.17 None 0 8.76 MB evanw
npm/@esbuild/sunos-x64@0.16.17 None 0 8.74 MB evanw
npm/@esbuild/win32-arm64@0.16.17 None 0 8.25 MB evanw
npm/@esbuild/win32-ia32@0.16.17 None 0 8.55 MB evanw
npm/@esbuild/win32-x64@0.16.17 None 0 8.9 MB evanw
npm/@eslint/eslintrc@2.1.4 filesystem, unsafe +1 711 kB eslintbot
npm/@humanwhocodes/config-array@0.11.14 None 0 55.6 kB nzakas
npm/@jridgewell/gen-mapping@0.3.5 None +1 99.5 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.25 None 0 169 kB jridgewell
npm/@noble/curves@1.4.0 None 0 1.39 MB paulmillr
npm/@noble/secp256k1@1.7.1 None 0 111 kB paulmillr
npm/@polkadot-api/json-rpc-provider-proxy@0.0.1 None 0 64.5 kB voliva
npm/@polkadot-api/json-rpc-provider@0.0.1 None 0 5.36 kB voliva
npm/@polkadot-api/metadata-builders@0.0.1 None 0 247 kB voliva
npm/@polkadot-api/substrate-bindings@0.0.1 None 0 268 kB voliva
npm/@polkadot-api/substrate-client@0.0.1 None 0 191 kB voliva
npm/@polkadot-api/utils@0.0.1 None 0 25.3 kB voliva
npm/@polkadot/api-augment@12.1.1 None 0 2.13 MB polkadotjs
npm/@polkadot/api-base@12.1.1 None 0 37.8 kB polkadotjs
npm/@polkadot/api-derive@12.1.1 None +2 1.63 MB polkadotjs
npm/@polkadot/api@12.1.1 None +1 1.07 MB polkadotjs
npm/@polkadot/keyring@12.6.2 None +1 151 kB polkadotjs
npm/@polkadot/networks@12.6.2 None 0 39.1 kB polkadotjs
npm/@polkadot/rpc-augment@12.1.1 None 0 51.9 kB polkadotjs
npm/@polkadot/rpc-core@12.1.1 None 0 63.1 kB polkadotjs
npm/@polkadot/rpc-provider@12.1.1 network +3 230 kB polkadotjs
npm/@polkadot/types-augment@12.1.1 None 0 1.79 MB polkadotjs
npm/@polkadot/types-codec@12.1.1 None 0 652 kB polkadotjs
npm/@polkadot/types-create@12.1.1 None 0 77.8 kB polkadotjs
npm/@polkadot/types-known@12.1.1 None 0 678 kB polkadotjs
npm/@polkadot/types-support@12.1.1 None 0 29.2 MB polkadotjs
npm/@polkadot/types@12.1.1 None +1 2.3 MB polkadotjs
npm/@polkadot/wasm-crypto@7.3.2 None +5 2.27 MB polkadotjs
npm/@polkadot/wasm-util@7.3.2 None 0 41.1 kB polkadotjs
npm/@substrate/connect-known-chains@1.1.6 None 0 18.5 MB paritytech
npm/@substrate/connect@0.8.10 None +2 6.62 MB paritytech
npm/@substrate/light-client-extension-helpers@0.0.6 None +3 6.94 MB paritytech
npm/@substrate/ss58-registry@1.47.0 None 0 75.9 kB paritytech-ci
npm/@types/bn.js@5.1.5 None 0 13.8 kB types
npm/@types/concurrently@5.2.1 None 0 5.23 kB types
npm/@types/eslint@7.29.0 None 0 165 kB types
npm/@types/node@18.19.40 None +1 2.04 MB types
npm/@types/node@20.11.28 None +1 2.08 MB types
npm/ansi-styles@3.2.1 None 0 9.37 kB sindresorhus
npm/babel-plugin-styled-components@1.12.0 filesystem +1 46.2 kB probablyup
npm/big-integer@1.6.52 None 0 175 kB peterolson
npm/browserslist@4.23.0 environment, filesystem Transitive: shell +6 2.4 MB ai
npm/chalk@2.4.2 environment 0 26.9 kB sindresorhus
npm/cliui@5.0.0 None +1 24.4 kB bcoe
npm/concurrently@5.3.0 environment Transitive: filesystem, shell +22 12.2 MB gustavohenke
npm/css-to-react-native@3.2.0 environment +2 109 kB jacobp100
npm/esbuild-darwin-64@0.14.54 None 0 8.82 MB evanw
npm/esbuild-node-externals@1.13.0 filesystem +4 59.3 kB leopradel
npm/esbuild@0.16.17 environment, filesystem, network, shell 0 127 kB evanw
npm/eslint-scope@5.1.1 None 0 78.4 kB eslintbot
npm/eslint@8.57.0 environment, filesystem Transitive: unsafe +13 3.78 MB eslintbot
npm/espree@9.6.1 None 0 73.6 kB eslintbot
npm/esquery@1.5.0 None 0 1 MB michaelficarra
npm/execa@4.1.0 environment, shell +4 112 kB sindresorhus
npm/faucet-api@0.0.0-use.local None 0 0 B
npm/fetch-blob@3.2.0 None +1 50.9 kB endless
npm/hasown@2.0.2 None +1 40.2 kB ljharb
npm/husky@6.0.0 filesystem, shell 0 6.1 kB typicode
npm/ignore@5.3.1 None 0 51.5 kB kael
npm/mock-socket@9.3.1 None 0 334 kB atrue
npm/nock@13.5.4 environment, filesystem, network +1 198 kB nockbot
npm/node-fetch@3.3.2 network +2 150 kB node-fetch-bot
npm/normalize-package-data@2.5.0 None +5 94.6 kB audrey.e
npm/onetime@5.1.2 None +1 10.6 kB sindresorhus
npm/pinning-api@0.0.0-use.local None 0 0 B
npm/postcss@8.4.38 environment, filesystem +2 228 kB ai
npm/prettier-plugin-organize-imports@3.2.4 environment 0 18.1 kB simonhaenisch
npm/pretty-quick@3.3.1 filesystem Transitive: environment +8 200 kB jounqin
npm/resolve@1.22.8 environment, filesystem +2 159 kB ljharb
npm/root-workspace-0b6124@0.0.0-use.local None 0 0 B
npm/scale-ts@1.6.0 environment 0 185 kB josepot
npm/source-map-support@0.5.21 filesystem +1 90.2 kB linusu
npm/string-width@3.1.0 None +2 44.4 kB sindresorhus
npm/strip-ansi@5.2.0 None +1 9.34 kB sindresorhus
npm/styled-components@6.1.11 environment +2 1.91 MB probablyup
npm/ts-node@9.0.0 environment, filesystem, unsafe +3 731 kB cspotcode
npm/tweetnacl@1.0.3 None 0 175 kB dchest
npm/ws@8.16.0 environment, network 0 141 kB lpinca

🚮 Removed packages: npm/@babel/helper-member-expression-to-functions@7.23.0, npm/@babel/helper-skip-transparent-expression-wrappers@7.22.5, npm/@babel/plugin-proposal-class-properties@7.18.6, npm/@babel/plugin-proposal-nullish-coalescing-operator@7.18.6, npm/@babel/plugin-proposal-numeric-separator@7.18.6, npm/@babel/plugin-proposal-optional-chaining@7.21.0, npm/@babel/plugin-proposal-private-methods@7.18.6, npm/@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2, npm/@babel/plugin-syntax-async-generators@7.8.4, npm/@babel/plugin-syntax-bigint@7.8.3, npm/@babel/plugin-syntax-class-properties@7.12.13, npm/@babel/plugin-syntax-class-static-block@7.14.5, npm/@babel/plugin-syntax-dynamic-import@7.8.3, npm/@babel/plugin-syntax-export-namespace-from@7.8.3, npm/@babel/plugin-syntax-import-meta@7.10.4, npm/@babel/plugin-syntax-json-strings@7.8.3, npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4, npm/@babel/plugin-syntax-numeric-separator@7.10.4, npm/@babel/plugin-syntax-object-rest-spread@7.8.3, npm/@babel/plugin-syntax-optional-catch-binding@7.8.3, npm/@babel/plugin-syntax-private-property-in-object@7.14.5, npm/@babel/plugin-syntax-top-level-await@7.14.5, npm/@babel/plugin-syntax-unicode-sets-regex@7.18.6, npm/@babel/plugin-transform-named-capturing-groups-regex@7.22.5, npm/@babel/plugin-transform-react-jsx-development@7.22.5, npm/@base2/pretty-print-object@1.0.1, npm/@bcoe/v8-coverage@0.2.3, npm/@colors/colors@1.5.0, npm/@discoveryjs/json-ext@0.5.7, npm/@emotion/stylis@0.8.5, npm/@emotion/use-insertion-effect-with-fallbacks@1.0.1, npm/@ethersproject/abi@5.7.0, npm/@ethersproject/address@5.7.0, npm/@ethersproject/bignumber@5.7.0, npm/@ethersproject/networks@5.7.1, npm/@fal-works/esbuild-plugin-global-externals@2.1.2, npm/@google-cloud/projectify@3.0.0, npm/@google-cloud/promisify@3.0.1, npm/@hapi/hoek@9.3.0, npm/@hapi/topo@5.1.0, npm/@humanwhocodes/object-schema@2.0.2, npm/@juggle/resize-observer@3.4.0, npm/@ndelangen/get-tarball@3.0.9, npm/@nodelib/fs.stat@2.0.5, npm/@protobufjs/aspromise@1.1.2, npm/@rollup/rollup-android-arm-eabi@4.18.1, npm/@rollup/rollup-android-arm64@4.18.1, npm/@rollup/rollup-darwin-arm64@4.18.1, npm/@rollup/rollup-darwin-x64@4.18.1, npm/@rollup/rollup-linux-arm-gnueabihf@4.18.1, npm/@rollup/rollup-linux-arm64-gnu@4.18.1, npm/@rollup/rollup-linux-arm64-musl@4.18.1, npm/@rollup/rollup-linux-riscv64-gnu@4.18.1, npm/@rollup/rollup-linux-x64-gnu@4.18.1, npm/@rollup/rollup-linux-x64-musl@4.18.1, npm/@rollup/rollup-win32-arm64-msvc@4.18.1, npm/@rollup/rollup-win32-ia32-msvc@4.18.1, npm/@rollup/rollup-win32-x64-msvc@4.18.1, npm/@types/eslint@8.56.10, npm/@types/estree@1.0.5, npm/@types/json-schema@7.0.15, npm/@types/minimatch@5.1.2, npm/abab@2.0.6, npm/abbrev@2.0.0, npm/accepts@1.3.8, npm/acorn-jsx@5.3.2, npm/acorn-walk@7.2.0, npm/agent-base@7.1.0, npm/ansi-escapes@4.3.2, npm/arrify@2.0.1, npm/assert-plus@1.0.0, npm/async@3.2.5, npm/base64-js@1.5.1, npm/bignumber.js@9.1.2, npm/boolbase@1.0.0, npm/braces@3.0.2, npm/brorand@1.1.0, npm/browserify-zlib@0.1.4, npm/buffer@6.0.3, npm/cli-table3@0.6.3, npm/combined-stream@1.0.8, npm/compressible@2.0.18, npm/content-disposition@0.5.4, npm/cookie@0.5.0, npm/core-util-is@1.0.2, npm/cross-fetch@3.1.8, npm/dayjs@1.11.10, npm/deep-is@0.1.4, npm/define-data-property@1.1.4, npm/define-properties@1.2.1, npm/detect-newline@3.1.0, npm/detect-node@2.1.0, npm/domhandler@4.3.1, npm/ecdsa-sig-formatter@1.0.11, npm/elliptic@6.5.4, npm/es-errors@1.3.0, npm/esprima@4.0.1, npm/estraverse@5.3.0, npm/events@3.3.0, npm/extend@3.0.2, npm/extsprintf@1.3.0, npm/fast-deep-equal@3.1.3, npm/fast-json-stable-stringify@2.1.0, npm/fast-levenshtein@2.0.6, npm/figures@3.2.0, npm/function.prototype.name@1.1.6, npm/globby@11.1.0, npm/graceful-fs@4.2.11, npm/has-bigints@1.0.2, npm/has-property-descriptors@1.0.2, npm/has-proto@1.0.3, npm/has-symbols@1.0.3, npm/has-tostringtag@1.0.2, npm/hash.js@1.1.7, npm/ieee754@1.2.1, npm/inherits@2.0.4, npm/is-arguments@1.1.1, npm/is-callable@1.2.7, npm/is-ci@3.0.1, npm/is-date-object@1.0.5, npm/is-docker@2.2.1, npm/is-generator-function@1.0.10, npm/is-glob@4.0.3, npm/is-path-inside@3.0.3, npm/is-string@1.0.7, npm/is-symbol@1.0.4, npm/is-typedarray@1.0.0, npm/isarray@2.0.5, npm/istanbul-lib-coverage@3.2.2, npm/jest-worker@27.5.1, npm/js-sha3@0.8.0, npm/js-yaml@4.1.0, npm/json-parse-even-better-errors@2.3.1, npm/kind-of@6.0.3, npm/lodash.once@4.1.1, npm/merge2@1.4.1, npm/mime-db@1.52.0, npm/mime-types@2.1.35, npm/minimalistic-assert@1.0.1, npm/minimatch@3.1.2, npm/minimist@1.2.8, npm/minipass@7.0.4, npm/mkdirp@1.0.4, npm/negotiator@0.6.3, npm/neo-async@2.6.2, npm/node-forge@1.3.1, npm/normalize-path@3.0.0, npm/object-assign@4.1.1, npm/obuf@1.1.2, npm/on-finished@2.4.1, npm/pako@0.2.9, npm/parseurl@1.3.3, npm/path-to-regexp@0.1.7, npm/pirates@4.0.6, npm/punycode@2.3.1, npm/qs@6.10.4, npm/randombytes@2.1.0, npm/range-parser@1.2.1, npm/react-is@17.0.2, npm/rimraf@3.0.2, npm/safe-buffer@5.2.1, npm/safer-buffer@2.1.2, npm/sha.js@2.4.11, npm/shell-quote@1.8.1, npm/stream-shift@1.0.3, npm/string_decoder@1.3.0, npm/strip-json-comments@3.1.1, npm/tapable@2.2.1, npm/through@2.3.8, npm/tmp@0.2.3, npm/type-check@0.4.0, npm/type-detect@4.0.8, npm/uc.micro@1.0.6, npm/uglify-js@3.17.4, npm/underscore@1.13.6, npm/unpipe@1.0.0, npm/uri-js@4.4.1, npm/util-deprecate@1.0.2, npm/util@0.12.5, npm/uuid@8.3.2, npm/vary@1.1.2, npm/walker@1.0.8, npm/watchpack@2.4.1, npm/xtend@4.0.2, npm/yauzl@2.10.0

View full report↗︎

Copy link

socket-security bot commented Jul 6, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/esbuild@0.16.17 🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/esbuild@0.16.17

@kattylucy kattylucy changed the title Add updates to packages React router v6 update Jul 9, 2024
@kattylucy kattylucy force-pushed the upgrade_packages branch 2 times, most recently from 75a37cb to d9b7740 Compare July 9, 2024 18:31
@kattylucy kattylucy marked this pull request as ready for review July 10, 2024 14:01
@kattylucy kattylucy force-pushed the upgrade_packages branch 5 times, most recently from 619c417 to 7211e63 Compare July 10, 2024 14:47
Copy link

github-actions bot commented Jul 10, 2024

PR deployed in Google Cloud
URL: https://pr2268-app-ff-production.k-f.dev
Commit #: 239c816
To access the functions directly check the corresponding deploy Action

Copy link

github-actions bot commented Jul 10, 2024

PR deployed in Google Cloud
URL: https://app-pr2268.k-f.dev
Commit #: 239c816
To access the functions directly check the corresponding deploy Action

@kattylucy
Copy link
Contributor Author

This one is a beast 👹 - Let's take the time to test the app. I added hash as well, thank to Onno for the context on IPFS!

"react-router": "^5.2.1",
"react-router-dom": "^5.3.0",
"react-router": "6.24.1",
"react-router-dom": "latest",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would version these both as ^6.24.1

"react-query": "^3.39.1",
"react-router-dom": "latest",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-router and history packages shouldn't be part of centrifuge-react. the website also uses centrifuge-react

const pool = usePool(poolId)
const isTinlakePool = poolId.startsWith('0x')
const basePath = useRouteMatch(['/pools', '/issuer'])?.path || ''
const pool = usePool(`${poolId}`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to throw if poolId is undefined is such cases, to narrow the type of poolId to string, instead of string | undefined

@kattylucy kattylucy force-pushed the upgrade_packages branch 3 times, most recently from a408d9c to 1d17caf Compare July 12, 2024 14:51
@@ -18,14 +18,14 @@ export function usePools(suspense = true) {
}

export function usePool<T extends boolean = true>(
id: string,
id: string | undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid this if possible, by throwing if a poolId param is possibly undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean throwing as in error? @onnovisser

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean throwing in the place where the poolId is passed if the route param is not set. e.g.:

const { pid: poolId } = useParams<{ pid: string }>()
if (!poolId) throw new Error('Pool not found')

this way, poolId can't possibly be undefined when it's passed to usePool

const loans = useLoans(poolId)

return loans && [...loans].find((loan) => loan.id === assetId)
export function useLoan(poolId: string | undefined, assetId: string | undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

package.json Outdated
@@ -31,6 +31,8 @@
"@sendgrid/mail": "^7.7.0",
"bn.js": "^5.2.1",
"dotenv": "16.0.3",
"react-router": "6",
"react-router-dom": "6",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be needed

import * as React from 'react'
import { useRouteMatch } from 'react-router'
import { Link } from 'react-router-dom'
import { Tabs, TabsItem, TabsItemProps } from '@centrifuge/fabric';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might need to set your editor to lint on save, so that Prettier runs

@kattylucy kattylucy force-pushed the upgrade_packages branch 2 times, most recently from 9f5d491 to 9b08f12 Compare July 16, 2024 13:49
@@ -49,15 +49,15 @@ export const columns = [
return fromAssetId && toAssetId && activeAssetId == fromAssetId.split('-')[1] ? (
<Text as="span" variant="body3">
{fromAssetName} &rarr;{' '}
<AnchorTextLink target="_self" href={`/pools/${toAssetId?.split('-')[0]}/assets/${toAssetId?.split('-')[1]}`}>
<AnchorTextLink target="_self" href={`#/pools/${toAssetId?.split('-')[0]}/assets/${toAssetId?.split('-')[1]}`}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a RouterTextLink

@@ -0,0 +1,16 @@
import { useMatch } from 'react-router-dom';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great, just a couple more places where Prettier needs to run

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a script to run prettier across files? @onnovisser

@kattylucy kattylucy merged commit 8d707bf into main Jul 17, 2024
13 of 14 checks passed
@kattylucy kattylucy deleted the upgrade_packages branch July 17, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants