Skip to content

Commit

Permalink
Merge pull request #377 from pendulum-chain/small-fixes
Browse files Browse the repository at this point in the history
Navbar item updated
  • Loading branch information
prayagd authored Jan 16, 2025
2 parents a7ba312 + 4d1c1ec commit 455d497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NetworkSelector } from '../NetworkSelector';
import { useNetwork } from '../../contexts/network';

const links = [
{ title: 'Offramp', href: '/' },
{ title: 'Sell Crypto', href: '/' },
{ title: 'How it works', href: 'https://www.vortexfinance.co/#lowest-code' },
{ title: 'Community', href: 'https://www.vortexfinance.co/#call-to-action' },
];
Expand Down
14 changes: 5 additions & 9 deletions src/pages/swap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArrowDownIcon } from '@heroicons/react/20/solid';

import Big from 'big.js';
import { useEffect, useMemo, useRef, useState, useCallback } from 'preact/hooks';
import { ApiPromise } from '@polkadot/api';
Expand Down Expand Up @@ -61,11 +61,7 @@ import { TrustedBy } from '../../components/TrustedBy';
import { WhyVortex } from '../../components/WhyVortex';
import { usePolkadotWalletState } from '../../contexts/polkadotWallet';

const Arrow = () => (
<div className="flex justify-center w-full my-5">
<ArrowDownIcon className="text-blue-700 w-7" />
</div>
);


export const SwapPage = () => {
const formRef = useRef<HTMLDivElement | null>(null);
Expand Down Expand Up @@ -385,9 +381,9 @@ export const SwapPage = () => {
className="max-w-2xl px-4 py-4 mx-4 my-8 rounded-lg shadow-custom md:mx-auto md:w-2/3 lg:w-3/5 xl:w-1/2"
onSubmit={onSwapConfirm}
>
<h1 className="mt-2 mb-5 text-3xl font-bold text-center text-blue-700">Withdraw</h1>
<LabeledInput label="You withdraw" htmlFor="fromAmount" Input={WithdrawNumericInput} />
<Arrow />
<h1 className="mt-2 mb-5 text-3xl font-bold text-center text-blue-700">Sell Crypto</h1>
<LabeledInput label="You sell" htmlFor="fromAmount" Input={WithdrawNumericInput} />
<div className="my-10" />
<LabeledInput label="You receive" htmlFor="toAmount" Input={ReceiveNumericInput} />
<p className="mb-6 text-red-600">{getCurrentErrorMessage()}</p>
<FeeCollapse
Expand Down

0 comments on commit 455d497

Please sign in to comment.