Skip to content

Commit

Permalink
Merge pull request #353 from zkLinkProtocol/feat/mobile-ui
Browse files Browse the repository at this point in the history
Feat/mobile UI
  • Loading branch information
MickWang authored Aug 8, 2024
2 parents 330ada9 + d61a473 commit 4789df1
Show file tree
Hide file tree
Showing 33 changed files with 1,275 additions and 1,581 deletions.
Binary file added public/img/s2/bg-s2-kyc-h5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
440 changes: 0 additions & 440 deletions src/components/Bridge/BridgeCompMobile.tsx

This file was deleted.

42 changes: 22 additions & 20 deletions src/components/Bridge/BridgeCompPc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ const BridgeCompPC = (props: IProps) => {
};

return (
<Container className="hidden md:block">
<Container>
{/* <ContainerCover /> */}
<div className="tabs flex items-end justify-between gap-[16px]">
<div className="tabs flex items-end justify-between gap-[16px] overflow-x-auto overflow-y-hidden">
{tabs.map((tab, index) => (
<div
className={`tab-item flex items-center justify-center gap-[16px] ${
Expand Down Expand Up @@ -342,24 +342,26 @@ const BridgeCompPC = (props: IProps) => {
{tabActive === 0 && (
<>
<SelectBox className="px-6 py-6 md:px-6">
<div className="flex items-center gap-4">
<span className="label">From</span>
<GradientBox
className="px-[16px] py-2 rounded-[100px] flex items-center gap-2 cursor-pointer"
onClick={() => fromModal.onOpen()}
>
<img
src={fromList[fromActive].icon}
className="w-6 h-6 rounded-full"
/>
<span>{fromList[fromActive].label}</span>
<img
src="/img/icon-arrow-down.svg"
alt=""
className={fromModal.isOpen ? "rotate-180" : ""}
/>
</GradientBox>
<div className="ml-auto flex items-center">
<div className="flex flex-col md:flex-row gap-[16px]">
<div className="flex items-center gap-4">
<span className="label">From</span>
<GradientBox
className="px-[16px] py-2 rounded-[100px] flex items-center gap-2 cursor-pointer"
onClick={() => fromModal.onOpen()}
>
<img
src={fromList[fromActive].icon}
className="w-6 h-6 rounded-full"
/>
<span>{fromList[fromActive].label}</span>
<img
src="/img/icon-arrow-down.svg"
alt=""
className={fromModal.isOpen ? "rotate-180" : ""}
/>
</GradientBox>
</div>
<div className="md:ml-auto flex items-center">
<span className="label mr-2">Balance: </span>
<span className="balance">
{tokenFiltered[tokenActive]?.formatedBalance}
Expand Down
1 change: 0 additions & 1 deletion src/components/Bridge/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ export const DefaultBtn = styled(Button)`
.btn-text {
text-align: center;
font-family: Satoshi;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: normal;
Expand Down
39 changes: 2 additions & 37 deletions src/components/Bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { SourceTokenInfo, useMergeToken } from "@/hooks/useMergeToken";
import useOldestFriendsStatus from "@/hooks/useOldestFriendsStatus";
import useNovaChadNftStatus from "@/hooks/useNovaChadNftStatus";
import BridgeCompPc from "./BridgeCompPc";
import BridgeCompMobile from "./BridgeCompMobile";

import {
ModalSelectItem,
AssetTypes,
Expand Down Expand Up @@ -658,42 +658,7 @@ export default function Bridge(props: IBridgeComponentProps) {
setIsMergeSelected,
}}
/>
{/* <BridgeCompMobile
{...{
actionBtnDisabled,
actionBtnTooltipForMantleDisabeld,
amount,
btnText,
errorInputMsg,
fromActive,
fromModal,
handleAction,
isCheckWinner,
isConnected,
isFirstDeposit,
isMemeMysteryboxReward,
isMergeSelected,
isWhitelistWinner,
loading,
loyalPoints,
mergeSupported,
mergeTokenBooster,
minDepositValue,
mintable,
minted,
networkKey,
openConnectModal,
points,
showNoPointsTip,
tokenActive,
tokenFiltered,
tokenModal,
unsupportedChainWithConnector,
inputRef2,
handleInputValue,
setIsMergeSelected,
}}
/> */}

{isFirstDeposit && address && txhashes[address]?.[0] && (
<div>
<Link
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/MysteryBoxIII.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default function MysteryBoxIII() {
isOpen={drawModal.isOpen}
onOpenChange={drawModal.onOpenChange}
>
<ModalContent className="mt-[2rem] py-4 md:px-4 h-[100vh] overflow-auto md:h-auto">
<ModalContent className="mt-[2rem] py-4 px-4 h-[100vh] overflow-auto h-auto">
<ModalHeader className="px-0 pt-0 flex flex-col text-xl font-normal">
Open the Mystery box
</ModalHeader>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Dashboard/PointsRewardsTooltips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export function getPointsRewardsTooltips(points: number) {
1000: "~167 days",
};
return (
<p>
<>
Equivalent to depositing 1 ETH into Nova for {pointsMap[Number(points)]}.
</p>
</>
);
}

Expand Down
Loading

0 comments on commit 4789df1

Please sign in to comment.