Skip to content

Commit

Permalink
refactor: remove clickable amount component
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Jan 5, 2024
1 parent b31bc7d commit d7ea5cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 89 deletions.
24 changes: 12 additions & 12 deletions src/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Show, createEffect, createMemo, on, onMount } from "solid-js";
import AddressInput from "./components/AddressInput";
import Asset from "./components/Asset";
import AssetSelect from "./components/AssetSelect";
import ClickableAmount from "./components/ClickableAmount";
import ConnectMetamask from "./components/ConnectMetamask";
import { CreateButton, setButtonLabel } from "./components/CreateButton";
import Fees from "./components/Fees";
Expand Down Expand Up @@ -227,17 +226,18 @@ const Create = () => {
<h2>{t("create_swap")}</h2>
<p>
{t("create_swap_subline")} <br />
{t("send")}{" "}
<ClickableAmount
label={"min"}
onClick={setAmount}
amount={minimum}
/>{" "}
<ClickableAmount
label={"max"}
onClick={setAmount}
amount={maximum}
/>
{t("send")} {t("min")}:{" "}
<span
onClick={() => setAmount(minimum())}
class="btn-small btn-light">
{formatAmount(minimum())}
</span>{" "}
{t("max")}:{" "}
<span
onClick={() => setAmount(maximum())}
class="btn-small btn-light">
{formatAmount(maximum())}
</span>{" "}
</p>
<div class="icons">
<div>
Expand Down
17 changes: 0 additions & 17 deletions src/components/ClickableAmount.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions tests/components/ClickableAmount.spec.jsx

This file was deleted.

0 comments on commit d7ea5cd

Please sign in to comment.