Skip to content

Commit e783900

Browse files
authored
refactor: update column headers and adjust component styles (#1717)
1 parent 2447ba1 commit e783900

File tree

26 files changed

+455
-402
lines changed

26 files changed

+455
-402
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"private": false,
66
"license": "SEE LICENSE IN LICENSE FILE",
77
"scripts": {
8-
"build": "yarn install-charting-library && next build",
8+
"build": "pnpm run install-charting-library && next build",
99
"dev": "next dev",
10-
"lint": "eslint ./src/ && yarn prettier-check",
10+
"lint": "eslint ./src/ && pnpm run prettier-check",
1111
"format": "eslint ./src/ --fix && prettier --write ./src/ ",
1212
"prettier-check": "prettier --ignore-path .gitignore --check ./src/",
1313
"start": "next start",
@@ -21,6 +21,8 @@
2121
},
2222
"dependencies": {
2323
"@cosmjs/cosmwasm-stargate": "^0.37.0",
24+
"@cosmjs/encoding": "^0.32.0",
25+
"@delphi-labs/shuttle": "^4.3.0",
2426
"@delphi-labs/shuttle-react": "^4.3.0",
2527
"@keplr-wallet/cosmos": "^0.12.294",
2628
"@next/eslint-plugin-next": "16.0.5",
@@ -46,6 +48,7 @@
4648
"lodash.debounce": "^4.0.8",
4749
"lodash.throttle": "^4.1.1",
4850
"mobx": "^6.15.0",
51+
"mobile-detect": "^1.4.5",
4952
"next": "16.0.5",
5053
"next-devtools-mcp": "^0.3.5",
5154
"react": "19.2.0",
@@ -64,15 +67,18 @@
6467
"swr": "^2.3.6",
6568
"viem": "^2.40.3",
6669
"wagmi": "^2.19.1",
70+
"@wagmi/core": "^2.19.1",
6771
"zustand": "5.0.8"
6872
},
6973
"devDependencies": {
7074
"@babel/eslint-parser": "^7.28.5",
7175
"@eslint/compat": "^2.0.0",
76+
"@eslint/js": "^9.15.0",
7277
"@svgr/webpack": "^8.1.0",
7378
"@tailwindcss/cli": "^4.1.17",
7479
"@tailwindcss/postcss": "^4.1.17",
7580
"@types/debounce-promise": "^3.1.9",
81+
"@types/lodash": "^4.17.21",
7682
"@types/lodash.debounce": "^4.0.9",
7783
"@types/lodash.throttle": "^4.1.9",
7884
"@types/node": "^24.10.1",
@@ -113,11 +119,9 @@
113119
"color-name": "1.1.4",
114120
"is-core-module": "2.13.1",
115121
"error-ex": "1.3.2",
116-
"has-ansi": "5.0.1"
117-
},
118-
"engines": {
119-
"npm": "please-use-yarn",
120-
"yarn": ">= 1.19.1"
122+
"has-ansi": "5.0.1",
123+
"@types/react": "19.2.2",
124+
"@types/react-dom": "19.2.2"
121125
},
122126
"resolutions": {
123127
"@types/react": "19.2.2",

pnpm-lock.yaml

Lines changed: 283 additions & 233 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
packages:
2+
- ./
13
onlyBuiltDependencies:
24
- '@parcel/watcher'
35
- bufferutil

src/components/bank/BankBorrowings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ function Fallback() {
5252
</div>
5353
)
5454
}
55-

src/components/borrow/Table/AvailableBorrowingsTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Row } from '@tanstack/react-table'
2-
import { Table as TanstackTable } from '@tanstack/table-core/build/lib/types'
1+
import { Row, Table as TanstackTable } from '@tanstack/react-table'
32
import { useCallback } from 'react'
43

54
import { NAME_META } from 'components/borrow/Table/Columns/Name'

src/components/borrow/Table/Columns/BorrowRate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Loading from 'components/common/Loading'
33

44
export const BORROW_RATE_META = {
55
accessorKey: 'apy.borrow',
6-
header: 'Borrow Rate APY',
6+
header: 'Borrow APY',
77
meta: { className: 'min-w-20' },
88
}
99

src/components/borrow/Table/Columns/Chevron.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const CHEVRON_META = {
55
enableSorting: false,
66
header: '',
77
meta: {
8-
className: 'w-5',
8+
className: 'w-4',
99
},
1010
}
1111

@@ -15,7 +15,7 @@ interface Props {
1515
export default function Chevron(props: Props) {
1616
return (
1717
<div className='flex items-center justify-end'>
18-
<div className='w-4'>{props.isExpanded ? <ChevronUp /> : <ChevronDown />}</div>
18+
<div className='w-3'>{props.isExpanded ? <ChevronUp /> : <ChevronDown />}</div>
1919
</div>
2020
)
2121
}

src/components/borrow/Table/Columns/Name.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function Name(props: Props) {
1717
const { asset } = props.data
1818
return (
1919
<div className='flex items-center flex-1 gap-3'>
20-
<AssetImage asset={asset} className='w-8 h-8' />
20+
<AssetImage asset={asset} className='w-8 h-8 min-w-8 flex-shrink-0' />
2121
<TitleAndSubCell
2222
title={asset.symbol}
2323
sub={props.v1 ? '' : asset.name}

src/components/common/DynamicLineChart/ChartTooltip.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ export default function CustomTooltip(props: Props) {
2020

2121
if (active && payload && payload.length) {
2222
return (
23-
<div
24-
className={classNames(
25-
'max-w-80 rounded-lg px-4 py-2 isolate bg-black/5 backdrop-blur',
26-
)}
27-
>
23+
<div className={classNames('max-w-80 rounded-lg px-4 py-2 isolate bg-black/5 backdrop-blur')}>
2824
<Text size='sm' className='text-white/60'>
2925
{formatDateLabel(label)}
3026
</Text>

src/components/common/Grid/ResizableGridLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ export const ResizableGridLayout: React.FC<ResizableGridLayoutProps> = ({
5454
}}
5555
>
5656
{items.map((item) => (
57-
<GridItem
58-
key={item.id}
59-
gridArea={item.gridArea}
60-
backgroundColor={item.backgroundColor}
61-
>
57+
<GridItem key={item.id} gridArea={item.gridArea} backgroundColor={item.backgroundColor}>
6258
{item.component}
6359
</GridItem>
6460
))}

0 commit comments

Comments
 (0)