Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Dec 22, 2024
1 parent 596cb83 commit 52c3368
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const defaultProps: SettingsProps = {
limitPriceLocked: false,
columnLayout: 'DEFAULT',
ordersTableOnLeft: false,
isUsdValuesMode: false,
},
onStateChanged(state) {
console.log('Settings state changed: ', state)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ interface WarningTooltipProps {
children: React.ReactNode
hasEnoughBalance: boolean
hasEnoughAllowance: boolean
hasValidPendingPermit: boolean | undefined
inputTokenSymbol: string
isOrderScheduled: boolean
onApprove: Command
Expand All @@ -100,14 +99,12 @@ export function WarningTooltip({
children,
hasEnoughBalance,
hasEnoughAllowance,
hasValidPendingPermit,
inputTokenSymbol,
isOrderScheduled,
onApprove,
showIcon = false,
}: WarningTooltipProps) {
const withAllowanceWarning =
hasEnoughAllowance === false && (hasValidPendingPermit === false || hasValidPendingPermit === undefined)
const withAllowanceWarning = hasEnoughAllowance === false

const tooltipContent = (
<styledEl.WarningContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ export function OrderRow({
<WarningTooltip
hasEnoughBalance={hasEnoughBalance ?? false}
hasEnoughAllowance={hasEnoughAllowance ?? false}
hasValidPendingPermit={hasValidPendingPermit}
inputTokenSymbol={inputTokenSymbol}
isOrderScheduled={isOrderScheduled}
onApprove={() => orderActions.approveOrderToken(order.inputToken)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ interface OrdersProps {
currentPageNumber: number
pendingOrdersPrices: any
getSpotPrice: any
ordersPermitStatus: any
searchTerm?: string
columnLayout?: ColumnLayout
}
Expand Down

0 comments on commit 52c3368

Please sign in to comment.