Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset info page redesign #3215

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/web/components/your-balance/your-balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import {
} from "@osmosis-labs/stores";
import classNames from "classnames";
import { observer } from "mobx-react-lite";
import Image from "next/image";
import Link from "next/link";
import { useCallback } from "react";
import { ReactElement, useMemo } from "react";

import { CreditCardIcon } from "~/components/assets/credit-card-icon";
import SkeletonLoader from "~/components/loaders/skeleton-loader";
import { Button } from "~/components/ui/button";
import { EventName } from "~/config";
import { ChainList } from "~/config/generated/chain-list";
import {
useAmplitudeAnalytics,
Expand Down Expand Up @@ -220,7 +218,7 @@ const YourBalance = observer(
denom={denom}
tokenDetailsByLanguage={tokenDetailsByLanguage}
/>
<div className="flex flex-col gap-6 self-stretch">
{/* <div className="flex flex-col gap-6 self-stretch">
<header>
<h6 className="text-lg font-h6 leading-6 tracking-wide">
{t("tokenInfos.earnWith", { denom })}
Expand Down Expand Up @@ -322,7 +320,7 @@ const YourBalance = observer(
/>
</Link>
</div>
</div>
</div> */}
</section>
);
}
Expand Down
9 changes: 5 additions & 4 deletions packages/web/pages/assets/[denom].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ const AssetInfoView: FunctionComponent<AssetInfoPageProps> = observer(
<div className="grid grid-cols-tokenpage gap-4 xl:flex xl:flex-col">
<div className="flex flex-col gap-4">
<TokenChartSection />
<YourBalance
denom={denom}
tokenDetailsByLanguage={tokenDetailsByLanguage}
/>
<TokenDetails
denom={denom}
tokenDetailsByLanguage={tokenDetailsByLanguage}
Expand All @@ -235,6 +231,11 @@ const AssetInfoView: FunctionComponent<AssetInfoPageProps> = observer(
</div>

<div className="flex flex-col gap-4">
<YourBalance
denom={denom}
tokenDetailsByLanguage={tokenDetailsByLanguage}
/>

<div className="xl:hidden">
<SwapTool
fixedWidth
Expand Down
Loading