Skip to content

Commit

Permalink
update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqiewicz committed Oct 16, 2024
1 parent 3f6fed4 commit 2385107
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"react-table": "^7.8.0",
"semantic-release": "^22.0.12",
"tailwindcss": "^3.4.14",
"typescript": "^5.5.4",
"typescript": "^5.6.3",
"vite": "^5.4.9"
},
"engines": {
Expand Down
15 changes: 7 additions & 8 deletions src/components/nabla/Pools/Swap/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ export const nameColumn: ColumnDef<SwapPoolColumn> = {
header: 'Name',
accessorKey: 'name',
accessorFn: (row) => row.token.name,
cell: ({ row: { original } }) =>
(
<div className="flex items-center">
<Avatar src={getIcon(original.token.symbol)} shape="circle" size={32} />
<p className="ml-2.5">{original.token.name}</p>
</div>
) || '',
cell: ({ row: { original } }) => (
<div className="flex items-center">
<Avatar src={getIcon(original.token.symbol)} shape="circle" size={32} />
<p className="ml-2.5">{original.token.name}</p>
</div>
),
enableSorting: true,
} as const;

Expand Down Expand Up @@ -54,7 +53,7 @@ export const aprColumn: ColumnDef<SwapPoolColumn> = {
accessorKey: 'apr',
accessorFn: (row) => rawToDecimal(row.apr, row.token.decimals).mul(BIG_100).toFixed(2, 0),
cell: (props): JSX.Element | null => (
<Badge className="h-auto px-2 py-1 rounded-lg bg-success/35 text-blackAlpha-700 dark:text-white">
<Badge className="h-auto rounded-lg bg-success/35 px-2 py-1 text-blackAlpha-700 dark:text-white">
{props.renderValue()}%
</Badge>
),
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14161,7 +14161,7 @@ __metadata:
semantic-release: "npm:^22.0.12"
tailwindcss: "npm:^3.4.14"
ts-node: "npm:^10.9.2"
typescript: "npm:^5.5.4"
typescript: "npm:^5.6.3"
vite: "npm:^5.4.9"
yup: "npm:^1.3.3"
languageName: unknown
Expand Down Expand Up @@ -17445,13 +17445,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.5.4":
version: 5.5.4
resolution: "typescript@npm:5.5.4"
"typescript@npm:^5.6.3":
version: 5.6.3
resolution: "typescript@npm:5.6.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/422be60f89e661eab29ac488c974b6cc0a660fb2228003b297c3d10c32c90f3bcffc1009b43876a082515a3c376b1eefcce823d6e78982e6878408b9a923199c
checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799
languageName: node
linkType: hard

Expand All @@ -17465,13 +17465,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5.5.4#optional!builtin<compat/typescript>":
version: 5.5.4
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=379a07"
"typescript@patch:typescript@npm%3A^5.6.3#optional!builtin<compat/typescript>":
version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/73409d7b9196a5a1217b3aaad929bf76294d3ce7d6e9766dd880ece296ee91cf7d7db6b16c6c6c630ee5096eccde726c0ef17c7dfa52b01a243e57ae1f09ef07
checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7
languageName: node
linkType: hard

Expand Down

0 comments on commit 2385107

Please sign in to comment.