Skip to content

Commit

Permalink
chore: Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Sep 20, 2024
1 parent 5b8628d commit 8a34625
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { testHook } from '@/test/utils/custom-renderers'
import { usePoolListQueryState } from './usePoolListQueryState'

function updateUrlQueryString(queryString: `?${string}`) {
window.location.href = 'http://balancer.fi/' + queryString
window.location.href = 'https://balancer.fi/pools' + queryString
}

describe('Pool list state query', () => {
it('calculates pagination based on first and ', () => {
updateUrlQueryString('?first=50&skip=150')
console.log(window.location.href)
const { result } = testHook(() => usePoolListQueryState())

expect(result.current.pagination).toMatchInlineSnapshot(`
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/modules/pool/pool.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
parseAsString,
parseAsStringEnum,
parseAsFloat,
} from 'next-usequerystate/parsers'
} from 'nuqs'
import { Hex } from 'viem'

export type PoolId = Hex
Expand Down
6 changes: 3 additions & 3 deletions apps/frontend-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"lodash": "^4.17.21",
"next": "14.2.0",
"next-themes": "^0.3.0",
"next-usequerystate": "^1.9.2",
"nextjs-toploader": "^1.6.4",
"numeral": "^2.0.6",
"nuqs": "^1.19.1",
"pluralize": "^8.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -78,8 +78,6 @@
"wagmi": "^2.12.11"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@apollo/experimental-nextjs-app-support": "^0.11.3",
"@chakra-ui/cli": "^2.4.1",
"@chakra-ui/styled-system": "^2.9.2",
Expand All @@ -89,6 +87,8 @@
"@graphql-codegen/typescript-document-nodes": "^4.0.1",
"@graphql-codegen/typescript-msw": "^1.1.6",
"@graphql-typed-document-node/core": "^3.2.0",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@sentry/types": "^7.89.0",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^15.0.5",
Expand Down
45 changes: 22 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a34625

Please sign in to comment.