Skip to content

Commit 9d25fa7

Browse files
committed
feat: fix build
1 parent 98506ec commit 9d25fa7

File tree

5 files changed

+40
-44
lines changed

5 files changed

+40
-44
lines changed

src/App.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import React from "react";
22
import { Route, Routes } from "react-router-dom";
33
import styled from "@emotion/styled";
44
import { observer } from "mobx-react";
@@ -9,7 +9,6 @@ import Header from "@components/Header";
99
import WalletConnectors from "@components/WalletConnectors";
1010

1111
import { useClearUrlParam } from "@hooks/useClearUrlParam";
12-
import { useMedia } from "@hooks/useMedia";
1312
import { useStores } from "@stores";
1413
import { MODAL_TYPE } from "@stores/ModalStore";
1514

@@ -19,10 +18,7 @@ import { AssetsWithdrawal } from "@screens/AssetsWithdrawal/AssetsWithdrawal";
1918
import { ROUTES } from "@constants";
2019

2120
const App: React.FC = observer(() => {
22-
const { modalStore, tradeStore } = useStores();
23-
const media = useMedia();
24-
25-
const [isAppStoreSheetVisible, setIsAppStoreSheetVisible] = useState(() => media.mobile);
21+
const { modalStore } = useStores();
2622

2723
// This hooks is used to clear unnecessary URL parameters,
2824
// specifically "tx_id", after returning from the faucet

src/components/Header/Header.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import MobileMenu from "./MobileMenu";
2323
import WalletAddressButton from "./WalletAddressButton";
2424

2525
const Header: React.FC = observer(() => {
26-
const { modalStore, quickAssetsStore } = useStores();
26+
const { modalStore } = useStores();
2727
const media = useMedia();
2828

2929
const [isMobileMenuOpen, openMobileMenu, closeMobileMenu] = useFlag();
@@ -144,11 +144,11 @@ const Root = styled(SmartFlex)`
144144
}
145145
`;
146146

147-
const ButtonStyled = styled(Button)`
148-
padding: 5px;
149-
width: 34px;
150-
height: 34px;
151-
`;
147+
// const ButtonStyled = styled(Button)`
148+
// padding: 5px;
149+
// width: 34px;
150+
// height: 34px;
151+
// `;
152152

153153
const Divider = styled.div`
154154
margin: 0 16px;

src/components/Header/MenuNav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { AnimatePresence, motion } from "framer-motion";
66
import { observer } from "mobx-react-lite";
77
import { Nullable } from "tsdef";
88

9-
import { breakpoints, breakpointsHeight, media } from "@themes/breakpoints";
9+
import { media } from "@themes/breakpoints";
1010

1111
import ArrowIcon from "@assets/icons/arrowUp.svg?react";
1212

@@ -40,10 +40,10 @@ type MenuItem = {
4040
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | null;
4141
};
4242

43-
const isShowSupport = breakpoints.mobile > window.innerWidth || breakpointsHeight.mobile > window.innerHeight;
43+
// const isShowSupport = breakpoints.mobile > window.innerWidth || breakpointsHeight.mobile > window.innerHeight;
4444

4545
const MENU_ITEMS: Array<MenuItem> = [
46-
{ title: "ASSETS", link: ROUTES.ROOT },
46+
{ title: "V12 Withdrawal Portal", link: ROUTES.ROOT },
4747
// { title: "DASHBOARD", link: ROUTES.DASHBOARD, trackEvent: MIXPANEL_EVENTS.CLICK_DASHBOARD },
4848
// {
4949
// title: "TRADE",

src/screens/Assets/MainAssets/MainAssets.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ const MainAssets: React.FC<MainAssetsProps> = observer(({ setStep }) => {
5555
// setIsLoading(false);
5656
// };
5757

58-
const closeAssets = () => {
59-
quickAssetsStore.setCurrentStep(0);
60-
quickAssetsStore.setQuickAssets(false);
61-
};
58+
// const closeAssets = () => {
59+
// quickAssetsStore.setCurrentStep(0);
60+
// quickAssetsStore.setQuickAssets(false);
61+
// };
6262

6363
const renderOverallContent = ({ isConnected, balance }: { isConnected: boolean; balance: BN }) => {
6464
return (
@@ -231,16 +231,16 @@ const DepositedAssets = styled(SmartFlex)`
231231
width: 100%;
232232
`;
233233

234-
const CloseButton = styled.img`
235-
width: 30px;
236-
height: 30px;
237-
background: ${({ theme }) => theme.colors.bgIcon};
238-
padding: 8px;
239-
border-radius: 100px;
240-
&:hover {
241-
cursor: pointer;
242-
}
243-
`;
234+
// const CloseButton = styled.img`
235+
// width: 30px;
236+
// height: 30px;
237+
// background: ${({ theme }) => theme.colors.bgIcon};
238+
// padding: 8px;
239+
// border-radius: 100px;
240+
// &:hover {
241+
// cursor: pointer;
242+
// }
243+
// `;
244244

245245
const LinkStyled = styled(Link)`
246246
color: ${({ theme }) => theme.colors.greenLight};

src/screens/Assets/WithdrawAssets/WithdrawAssets.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ShowAction {
3636
typeModal: ModalEnums;
3737
}
3838
const WithdrawAssets = observer(({ setStep }: WithdrawAssets) => {
39-
const { quickAssetsStore, balanceStore } = useStores();
39+
const { balanceStore } = useStores();
4040

4141
const [activeAsset, setActiveAsset] = useState<AssetBlockProps["token"]>();
4242
const [amount, setAmount] = useState(BN.ZERO);
@@ -50,10 +50,10 @@ const WithdrawAssets = observer(({ setStep }: WithdrawAssets) => {
5050

5151
const balanceList = balanceStore.formattedBalanceInfoList;
5252

53-
const closeAssets = () => {
54-
quickAssetsStore.setCurrentStep(0);
55-
quickAssetsStore.setQuickAssets(false);
56-
};
53+
// const closeAssets = () => {
54+
// quickAssetsStore.setCurrentStep(0);
55+
// quickAssetsStore.setQuickAssets(false);
56+
// };
5757

5858
const handleClick = async () => {
5959
if (!activeAsset || !amount) return;
@@ -141,16 +141,16 @@ const BackButton = styled.img`
141141
}
142142
`;
143143

144-
const CloseButton = styled.img`
145-
width: 30px;
146-
height: 30px;
147-
background: ${({ theme }) => theme.colors.bgIcon};
148-
padding: 8px;
149-
border-radius: 100px;
150-
&:hover {
151-
cursor: pointer;
152-
}
153-
`;
144+
// const CloseButton = styled.img`
145+
// width: 30px;
146+
// height: 30px;
147+
// background: ${({ theme }) => theme.colors.bgIcon};
148+
// padding: 8px;
149+
// border-radius: 100px;
150+
// &:hover {
151+
// cursor: pointer;
152+
// }
153+
// `;
154154

155155
const SmartFlexContainer = styled(SmartFlex)`
156156
width: 100%;

0 commit comments

Comments
 (0)