Skip to content

remove unused tableheader on mobile #1184

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

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Long } from "@delvtech/hyperdrive-viem";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import {
AppConfig,
EmptyExtensions,
Expand Down Expand Up @@ -118,36 +117,6 @@ export function OpenLongsTableMobile({
);
})}
<table className="daisy-table daisy-table-zebra daisy-table-lg">
<thead>
{tableInstance.getHeaderGroups().map((headerGroup) => (
<tr key={headerGroup.id}>
{headerGroup.headers.map((header) => (
<th
className="sticky z-10 font-normal text-neutral-content"
key={header.id}
>
<div
className={classNames({
"flex cursor-pointer select-none items-center gap-2":
header.column.getCanSort(),
})}
onClick={header.column.getToggleSortingHandler()}
>
{flexRender(
header.column.columnDef.header,
header.getContext(),
)}
{{
asc: <ChevronUpIcon height={15} />,
desc: <ChevronDownIcon height={15} />,
}[header.column.getIsSorted() as string] ?? null}
</div>
</th>
))}
</tr>
))}
</thead>

<tbody>
{tableInstance.getRowModel().rows.map((row, index) => {
const isLastRow =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable react/jsx-key */
import { OpenShort } from "@delvtech/hyperdrive-viem";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import {
AppConfig,
HyperdriveConfig,
Expand Down Expand Up @@ -65,35 +64,6 @@ export function OpenShortsTableMobile({
);
})}
<table className="daisy-table daisy-table-zebra daisy-table-lg">
<thead>
{tableInstance.getHeaderGroups().map((headerGroup) => (
<tr key={headerGroup.id}>
{headerGroup.headers.map((header) => (
<th
className="sticky z-10 font-normal text-neutral-content"
key={header.id}
>
<div
className={classNames({
"flex cursor-pointer select-none items-center gap-2":
header.column.getCanSort(),
})}
onClick={header.column.getToggleSortingHandler()}
>
{flexRender(
header.column.columnDef.header,
header.getContext(),
)}
{{
asc: <ChevronUpIcon height={15} />,
desc: <ChevronDownIcon height={15} />,
}[header.column.getIsSorted() as string] ?? null}
</div>
</th>
))}
</tr>
))}
</thead>
<tbody>
{tableInstance.getRowModel().rows.map((row, index) => {
const isLastRow =
Expand Down
Loading