Skip to content

Commit 65b3be4

Browse files
authored
Merge pull request #4825 from CrocSwap/fix-missing-footer
Fix missing footer
2 parents 2565dc4 + 85447e2 commit 65b3be4

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

src/components/Global/TokenSelect/TokenSelect.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { TokenBalanceContext } from '../../../contexts/TokenBalanceContext';
66
import { UserDataContext } from '../../../contexts/UserDataContext';
77
import TokenIcon from '../TokenIcon/TokenIcon';
88
import styles from './TokenSelect.module.css';
9+
import { useBottomSheet } from '../../../contexts/BottomSheetContext';
910

1011
interface propsIF {
1112
token: TokenIF;
@@ -14,6 +15,8 @@ interface propsIF {
1415
}
1516

1617
export default function TokenSelect(props: propsIF) {
18+
const { isBottomSheetOpen, closeBottomSheet } = useBottomSheet();
19+
1720
const { token, chooseToken, fromListsText } = props;
1821

1922
const { isUserConnected } = useContext(UserDataContext);
@@ -54,7 +57,12 @@ export default function TokenSelect(props: propsIF) {
5457
<button
5558
id={`token_select_button_${token.address}`}
5659
className={styles.main_container}
57-
onClick={() => chooseToken(token, false)}
60+
onClick={() => {
61+
chooseToken(token, false);
62+
if (isBottomSheetOpen) {
63+
closeBottomSheet();
64+
}
65+
}}
5866
role='button'
5967
tabIndex={0}
6068
aria-label={`Select ${token.symbol}`}

src/components/Home/Landing/Hero.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export default function Hero() {
8181
marginRight: '15px',
8282
fontSize: '70px',
8383
padding: '0 20px',
84+
height: '50px',
8485
}}
8586
>
8687
{h.content}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.container{width: 100%; height: auto}
2+
3+
@media only screen and (min-width: 1280px) {
4+
.container{
5+
width: 100%;height: 330px
6+
}
7+
8+
}

src/pages/platformAmbient/Home/Home.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Stats from '../../../components/Home/Stats/AmbientStats';
66
import TopPoolsHome from '../../../components/Home/TopPoolsHome/TopPoolsHome';
77
import { BrandContext } from '../../../contexts/BrandContext';
88
import useMediaQuery from '../../../utils/hooks/useMediaQuery';
9-
9+
import styles from './Home.module.css';
1010
export default function Home() {
1111
const showMobileVersion = useMediaQuery('(max-width: 600px)');
1212
// hook from web3modal to switch connected wallet in extension
@@ -18,7 +18,7 @@ export default function Home() {
1818
if (showMobileVersion) return <MobileLandingSections />;
1919
return (
2020
<section data-testid={'home'}>
21-
<div style={{ width: '100%', height: '480px' }}>
21+
<div className={styles.container}>
2222
<Hero />
2323
</div>
2424
<div>

0 commit comments

Comments
 (0)