Skip to content

Commit

Permalink
chore: remove duplicate component
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Jan 14, 2025
1 parent 9a3f610 commit 3d97882
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 106 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./action-input";
export * from "./collateral";
export * from "./preview";
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
PreviousTxn,
} from "@mrgnlabs/mrgn-utils";

import { ActionButton } from "~/components/action-box-v2/components";
import { ActionButton, ActionCollateralProgressBar } from "~/components/action-box-v2/components";
import { useActionAmounts } from "~/components/action-box-v2/hooks";
import { LSTDialog, LSTDialogVariants } from "~/components/LSTDialog";
import { WalletContextStateOverride } from "~/components/wallet-v2/hooks/use-wallet.hook";
Expand All @@ -32,7 +32,7 @@ import { ActionMessage } from "~/components";
import { useLendBoxStore } from "./store";
import { HandleCloseBalanceParamsProps, handleExecuteCloseBalance, handleExecuteLendingAction } from "./utils";
import { ActionSimulationStatus } from "../../components";
import { Collateral, ActionInput, Preview } from "./components";
import { ActionInput, Preview } from "./components";
import { SimulationStatus } from "../../utils";
import { useLendSimulation } from "./hooks";
import { useActionBoxStore } from "../../store";
Expand Down Expand Up @@ -517,7 +517,7 @@ export const LendBox = ({

{showAvailableCollateral && (
<div className="mb-6">
<Collateral selectedAccount={selectedAccount} actionSummary={actionSummary} />
<ActionCollateralProgressBar selectedAccount={selectedAccount} actionSummary={actionSummary} />
</div>
)}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./preview";
export * from "./collateral";
export * from "./action-input";
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ import { IconCheck } from "@tabler/icons-react";

import { CircularProgress } from "~/components/ui/circular-progress";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "~/components/ui/tooltip";
import { ActionButton, ActionSettingsButton } from "~/components/action-box-v2/components";
import { ActionButton, ActionCollateralProgressBar, ActionSettingsButton } from "~/components/action-box-v2/components";
import { useActionAmounts, usePollBlockHeight } from "~/components/action-box-v2/hooks";
import { ActionMessage } from "~/components";
import { IconLoader } from "~/components/ui/icons";
import { ActionSimulationStatus } from "../../components";

import { SimulationStatus } from "../../utils/simulation.utils";
import { handleExecuteRepayCollatAction } from "./utils";
import { Collateral, ActionInput, Preview } from "./components";
import { ActionInput, Preview } from "./components";
import { useRepayCollatBoxStore } from "./store";
import { useRepayCollatSimulation } from "./hooks";

Expand Down Expand Up @@ -438,7 +438,7 @@ export const RepayCollatBox = ({

{showAvailableCollateral && (
<div className="mb-6">
<Collateral selectedAccount={selectedAccount} actionSummary={actionSummary} />
<ActionCollateralProgressBar selectedAccount={selectedAccount} actionSummary={actionSummary} />
</div>
)}

Expand Down

0 comments on commit 3d97882

Please sign in to comment.