1
1
import React from "react"
2
- import { Box , type FlexProps , Text , Icon , Flex , Grid } from "@chakra-ui/react"
2
+ import {
3
+ Box ,
4
+ type FlexProps ,
5
+ Text ,
6
+ Icon ,
7
+ Flex ,
8
+ Grid ,
9
+ Button ,
10
+ } from "@chakra-ui/react"
3
11
import { BsTriangle } from "react-icons/bs"
4
12
import { PiMagnifyingGlass } from "react-icons/pi"
5
13
import { IoEllipsisHorizontalSharp } from "react-icons/io5"
6
14
import { NFTSupportIcon } from "../../../icons/wallets/NFTSupportIcon"
7
15
8
- export const Browser : React . FC < FlexProps > = ( props ) => {
16
+ interface IProps extends FlexProps {
17
+ progressStepper : ( ) => void
18
+ }
19
+ export const Browser : React . FC < IProps > = ( { progressStepper, ...props } ) => {
9
20
return (
10
21
< Flex direction = "column" h = "full" bg = "body.light" { ...props } >
11
22
< Box bg = "background.highlight" w = "full" px = { 3 } pt = { 9 } pb = { 3 } >
@@ -14,18 +25,38 @@ export const Browser: React.FC<FlexProps> = (props) => {
14
25
</ Box >
15
26
</ Box >
16
27
< Box p = { 8 } flex = { 1 } >
17
- < Flex direction = "column" alignItems = "center" gap = { 2 } w = "fit-content" >
28
+ < Button
29
+ variant = "ghost"
30
+ display = "flex"
31
+ flexDirection = "column"
32
+ alignItems = "center"
33
+ data-group
34
+ onClick = { progressStepper }
35
+ gap = { 4 }
36
+ p = { 0 }
37
+ >
18
38
< Grid
39
+ bg = "background.highlight"
40
+ borderRadius = "lg"
19
41
placeItems = "center"
20
42
w = { 16 }
21
43
h = { 16 }
22
- bg = "background.highlight"
23
- borderRadius = "lg"
44
+ _groupHover = { { bg : "primary.hover" } }
24
45
>
25
- < Icon as = { NFTSupportIcon } fontSize = "4xl" />
46
+ < Icon as = { NFTSupportIcon } color = "white" w = { 10 } h = { 10 } />
26
47
</ Grid >
27
- < Text > NFT Market</ Text >
28
- </ Flex >
48
+ < Box position = "relative" >
49
+ < Text
50
+ fontWeight = "bold"
51
+ color = "primary.base"
52
+ textAlign = "center"
53
+ m = { 0 }
54
+ _groupHover = { { color : "primary.hover" } }
55
+ >
56
+ NFT Market
57
+ </ Text >
58
+ </ Box >
59
+ </ Button >
29
60
</ Box >
30
61
< Flex
31
62
bg = "background.highlight"
0 commit comments