Skip to content

Commit 3063e7f

Browse files
committed
remove unused tableheader on mobile
1 parent 581c3e1 commit 3063e7f

File tree

2 files changed

+0
-61
lines changed

2 files changed

+0
-61
lines changed

apps/hyperdrive-trading/src/ui/hyperdrive/longs/OpenLongsTable/OpenLongsTableMobile.tsx

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Long } from "@delvtech/hyperdrive-viem";
2-
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
32
import {
43
AppConfig,
54
EmptyExtensions,
@@ -118,36 +117,6 @@ export function OpenLongsTableMobile({
118117
);
119118
})}
120119
<table className="daisy-table daisy-table-zebra daisy-table-lg">
121-
<thead>
122-
{tableInstance.getHeaderGroups().map((headerGroup) => (
123-
<tr key={headerGroup.id}>
124-
{headerGroup.headers.map((header) => (
125-
<th
126-
className="sticky z-10 font-normal text-neutral-content"
127-
key={header.id}
128-
>
129-
<div
130-
className={classNames({
131-
"flex cursor-pointer select-none items-center gap-2":
132-
header.column.getCanSort(),
133-
})}
134-
onClick={header.column.getToggleSortingHandler()}
135-
>
136-
{flexRender(
137-
header.column.columnDef.header,
138-
header.getContext(),
139-
)}
140-
{{
141-
asc: <ChevronUpIcon height={15} />,
142-
desc: <ChevronDownIcon height={15} />,
143-
}[header.column.getIsSorted() as string] ?? null}
144-
</div>
145-
</th>
146-
))}
147-
</tr>
148-
))}
149-
</thead>
150-
151120
<tbody>
152121
{tableInstance.getRowModel().rows.map((row, index) => {
153122
const isLastRow =

apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortsTable/OpenShortsTableMobile.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable react/jsx-key */
22
import { OpenShort } from "@delvtech/hyperdrive-viem";
3-
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
43
import {
54
AppConfig,
65
HyperdriveConfig,
@@ -65,35 +64,6 @@ export function OpenShortsTableMobile({
6564
);
6665
})}
6766
<table className="daisy-table daisy-table-zebra daisy-table-lg">
68-
<thead>
69-
{tableInstance.getHeaderGroups().map((headerGroup) => (
70-
<tr key={headerGroup.id}>
71-
{headerGroup.headers.map((header) => (
72-
<th
73-
className="sticky z-10 font-normal text-neutral-content"
74-
key={header.id}
75-
>
76-
<div
77-
className={classNames({
78-
"flex cursor-pointer select-none items-center gap-2":
79-
header.column.getCanSort(),
80-
})}
81-
onClick={header.column.getToggleSortingHandler()}
82-
>
83-
{flexRender(
84-
header.column.columnDef.header,
85-
header.getContext(),
86-
)}
87-
{{
88-
asc: <ChevronUpIcon height={15} />,
89-
desc: <ChevronDownIcon height={15} />,
90-
}[header.column.getIsSorted() as string] ?? null}
91-
</div>
92-
</th>
93-
))}
94-
</tr>
95-
))}
96-
</thead>
9767
<tbody>
9868
{tableInstance.getRowModel().rows.map((row, index) => {
9969
const isLastRow =

0 commit comments

Comments
 (0)