Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
torztomasz committed Jul 24, 2023
1 parent f59a297 commit 0b2020f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/view/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import React, { ComponentPropsWithoutRef, ElementType } from 'react'

type ButtonProps<T extends ElementType> = {
variant?: ButtonVariant
className?: string
as?: T
} & ComponentPropsWithoutRef<T> &
// eslint-disable-next-line @typescript-eslint/ban-types
(T extends 'a' ? { disabled?: boolean } : {})

type ButtonVariant = 'contained' | 'outlined'
Expand Down
16 changes: 8 additions & 8 deletions packages/frontend/src/view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ export type { OfferEntry } from './components/tables/OffersTable'
export type { PriceEntry } from './components/tables/PricesTable'
export type { TransactionEntry } from './components/tables/TransactionsTable'
export * from './pages/ErrorPage'
export * from './pages/MerkleProofPage'
export * from './pages/RawL2TransactionPage'
export * from './pages/forced-actions/NewPerpetualForcedActionPage'
export * from './pages/forced-actions/NewSpotForcedWithdrawalPage'
export type { HomeStateUpdateEntry } from './pages/home/components/HomeStateUpdatesTable'
export type { HomeTutorialEntry } from './pages/home/components/HomeTutorials'
export * from './pages/home/HomeL2TransactionsPage'
export * from './pages/home/HomeOffersPage'
export * from './pages/home/HomePage'
export * from './pages/home/HomeStateUpdatesPage'
export * from './pages/home/HomeTransactionsPage'
export type { HomeStateUpdateEntry } from './pages/home/components/HomeStateUpdatesTable'
export type { HomeTutorialEntry } from './pages/home/components/HomeTutorials'
export * from './pages/l2-transaction/PerpetualL2TransactionDetailsPage'
export * from './pages/MerkleProofPage'
export * from './pages/RawL2TransactionPage'
export type { StateUpdateBalanceChangeEntry } from './pages/state-update/components/StateUpdateBalanceChangesTable'
export * from './pages/state-update/StateUpdateBalanceChangesPage'
export * from './pages/state-update/StateUpdateL2TransactionsPage'
export * from './pages/state-update/StateUpdatePage'
export * from './pages/state-update/StateUpdateTransactionsPage'
export type { StateUpdateBalanceChangeEntry } from './pages/state-update/components/StateUpdateBalanceChangesTable'
export * from './pages/transaction/OfferAndForcedTradePage'
export * from './pages/transaction/PerpetualForcedWithdrawalPage'
export * from './pages/transaction/RegularWithdrawalPage'
export * from './pages/transaction/SpotForcedWithdrawalPage'
export type { UserAssetEntry } from './pages/user/components/UserAssetTable'
export type { UserBalanceChangeEntry } from './pages/user/components/UserBalanceChangesTable'
export type { FinalizableOfferEntry } from './pages/user/components/UserQuickActionsTable'
export * from './pages/user/UserAssetsPage'
export * from './pages/user/UserBalanceChangesPage'
export * from './pages/user/UserL2TransactionsPage'
Expand All @@ -31,6 +34,3 @@ export * from './pages/user/UserPage'
export * from './pages/user/UserRecoverPage'
export * from './pages/user/UserRegisterPage'
export * from './pages/user/UserTransactionsPage'
export type { UserAssetEntry } from './pages/user/components/UserAssetTable'
export type { UserBalanceChangeEntry } from './pages/user/components/UserBalanceChangesTable'
export type { FinalizableOfferEntry } from './pages/user/components/UserQuickActionsTable'
4 changes: 2 additions & 2 deletions packages/frontend/src/view/pages/RawL2TransactionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function renderRawL2TransactionPage(props: RawL2TransactionPageProps) {

export function RawL2TransactionPage(props: RawL2TransactionPageProps) {
const isReplaced = props.transaction.alternativeTransactions.length > 0
const { transactionId, stateUpdateId, ...transactionData } = props.transaction

return (
<Page
context={props.context}
Expand All @@ -48,7 +48,7 @@ export function RawL2TransactionPage(props: RawL2TransactionPageProps) {
)}
<Card>
<pre className="whitespace-pre-wrap">
{toJsonWithoutBigInts(transactionData, 2)}
{toJsonWithoutBigInts(props.transaction, 2)}
</pre>
</Card>
</ContentWrapper>
Expand Down

0 comments on commit 0b2020f

Please sign in to comment.