File tree 4 files changed +20
-3
lines changed
pages/platformAmbient/Home
4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { TokenBalanceContext } from '../../../contexts/TokenBalanceContext';
6
6
import { UserDataContext } from '../../../contexts/UserDataContext' ;
7
7
import TokenIcon from '../TokenIcon/TokenIcon' ;
8
8
import styles from './TokenSelect.module.css' ;
9
+ import { useBottomSheet } from '../../../contexts/BottomSheetContext' ;
9
10
10
11
interface propsIF {
11
12
token : TokenIF ;
@@ -14,6 +15,8 @@ interface propsIF {
14
15
}
15
16
16
17
export default function TokenSelect ( props : propsIF ) {
18
+ const { isBottomSheetOpen, closeBottomSheet } = useBottomSheet ( ) ;
19
+
17
20
const { token, chooseToken, fromListsText } = props ;
18
21
19
22
const { isUserConnected } = useContext ( UserDataContext ) ;
@@ -54,7 +57,12 @@ export default function TokenSelect(props: propsIF) {
54
57
< button
55
58
id = { `token_select_button_${ token . address } ` }
56
59
className = { styles . main_container }
57
- onClick = { ( ) => chooseToken ( token , false ) }
60
+ onClick = { ( ) => {
61
+ chooseToken ( token , false ) ;
62
+ if ( isBottomSheetOpen ) {
63
+ closeBottomSheet ( ) ;
64
+ }
65
+ } }
58
66
role = 'button'
59
67
tabIndex = { 0 }
60
68
aria-label = { `Select ${ token . symbol } ` }
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export default function Hero() {
81
81
marginRight : '15px' ,
82
82
fontSize : '70px' ,
83
83
padding : '0 20px' ,
84
+ height : '50px' ,
84
85
} }
85
86
>
86
87
{ h . content }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Stats from '../../../components/Home/Stats/AmbientStats';
6
6
import TopPoolsHome from '../../../components/Home/TopPoolsHome/TopPoolsHome' ;
7
7
import { BrandContext } from '../../../contexts/BrandContext' ;
8
8
import useMediaQuery from '../../../utils/hooks/useMediaQuery' ;
9
-
9
+ import styles from './Home.module.css' ;
10
10
export default function Home ( ) {
11
11
const showMobileVersion = useMediaQuery ( '(max-width: 600px)' ) ;
12
12
// hook from web3modal to switch connected wallet in extension
@@ -18,7 +18,7 @@ export default function Home() {
18
18
if ( showMobileVersion ) return < MobileLandingSections /> ;
19
19
return (
20
20
< section data-testid = { 'home' } >
21
- < div style = { { width : '100%' , height : '480px' } } >
21
+ < div className = { styles . container } >
22
22
< Hero />
23
23
</ div >
24
24
< div >
You can’t perform that action at this time.
0 commit comments