Skip to content

fix(backstop): BackstopActionPanel crashes — AmountInput is used but never imported #236

Description

@FabianSanchezD

Description

The BackstopActionPanel component references <AmountInput /> in both the deposit and withdraw tabs, but AmountInput is never imported. This causes a ReferenceError: AmountInput is not defined at render time, making the entire backstop deposit and withdrawal UI non-functional.

File: apps/web-app/src/features/backstop/components/ui/BackstopActionPanel.tsx

The import block only pulls in BackstopInfoAlert and QueueCountdown. The shared AmountInput component added in the latest changes (apps/web-app/src/components/AmountInput.tsx) is what should be imported here — matching how it is used in lending and swap.

Steps to Reproduce

  1. Navigate to the Backstop page
  2. Attempt to open the Deposit or Withdraw tab
  3. The panel crashes / renders nothing

Expected Behavior

The deposit and withdraw tabs render correctly with a functional amount input field.

Acceptance Criteria

  • import { AmountInput } from "@/components/AmountInput" is added to BackstopActionPanel.tsx
  • Both the deposit tab (lines ~112-117) and withdraw-queue tab (lines ~181-186) render <AmountInput> without errors
  • The deposit and withdraw flows work end-to-end (amount entry → button enabled → transaction submitted)
  • No TypeScript errors related to this component

Labels

bug, P0, backstop

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions