Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
fix: compilation issues with any
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Oct 21, 2023
1 parent e31e1c5 commit 9869a5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/transactions/hash/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import LnPayment from "../../../../components/transactions/ln-payment"
export default async function TransactionDetails({ params }: { params: { id: string } }) {
const id = params.id

let txs: any
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
let txs

try {
const data = await getClient().query<
Expand Down
11 changes: 8 additions & 3 deletions components/transactions/list.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { formatDate, formatNumber } from "../../app/utils"

type Props = {
transactions: unknown[]
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
transactions
}

/* eslint @typescript-eslint/ban-ts-comment: "off" */
Expand Down Expand Up @@ -58,7 +60,9 @@ const Transactions: React.FC<Props> = ({ transactions }) => {
const isInternalTx =
hasData &&
transactions.every(
(txn: any) => txn?.initiationVia.__typename === "InitiationViaIntraLedger",
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
(txn) => txn?.initiationVia.__typename === "InitiationViaIntraLedger",
)
return (
<div className="shadow w-full overflow-hidden rounded-lg shadow-xs">
Expand All @@ -81,7 +85,8 @@ const Transactions: React.FC<Props> = ({ transactions }) => {
</thead>
<tbody className="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
{hasData &&
transactions.map((txn: any) => (
// @ts-ignore-next-line no-implicit-any error
transactions.map((txn) => (
<tr key={txn?.id} className="text-gray-700 dark:text-gray-400">
<td className="px-4 py-3">{txn?.id}</td>
<td className="px-4 py-3">
Expand Down

0 comments on commit 9869a5d

Please sign in to comment.