-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfileContainer.tsx
76 lines (65 loc) · 2.35 KB
/
ProfileContainer.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// 'use client'
// import { Flex, Grid, GridItem, Input, Text } from '@chakra-ui/react'
// import ButtonType from './Button'
// import Headings from './Headings'
// import Link from 'next/link'
// import { getAccount,getNetwork,getWalletClient } from '@wagmi/core'
// const ProfileContainer = () => {
// async function upload() {
// const account = getAccount()
// const { chain, chains } = getNetwork()
// const walletClient = await getWalletClient()
// console.log(walletClient)
// if (!account.isConnected) {
// alert("Please Connect your Wallet")
// }
// else if (chain?.id !== 1287) {
// alert("Please connect to Moonbean Alpha network")
// }
// else {
// await walletClient?.writeContract({
// })
// console.log(account.isConnected)
// console.log(chain?.name)
// console.log(walletClient)
// }
// }
// return (
// <>
// {/* Side Navbar */}
// <Grid minH='100vh' gridTemplateColumns='repeat(12,1fr)'>
// <GridItem className=' bg-slate-200 pt-28 pb-0 flex flex-col justify-start gap-6 items-center md:px-10 md:pb-10 text-center px-4' colSpan={{
// base: 12,
// md: 4,
// xl: 3,
// }}>
// <ButtonType label='My Profile' color='white' bgColor='bg-blue-500' bgModified='blue.500' />
// <Link className=' font-semibold' href='/market'>
// Market Place
// </Link>
// <ButtonType label='Upload a new content' color='purple' bgColor='bg-transparent' border='purple' />
// </GridItem>
// {/* Main Content */}
// <GridItem className=' pt-1 pb-10 md:pt-28' colSpan={{
// base: 12,
// md: 8,
// xl: 9,
// }} >
// <Flex justifyContent='flex-end' className='px-4'>
// <ButtonType className=' ' label='Publish' color='white' bgColor='bg-blue-500' bgModified='blue.500' onClick={async () => {
// console.log("clicked")
// upload()
// }} />
// </Flex>
// <Headings>
// <Flex flexWrap='wrap'>
// <Input type='file' />
// <Text>Click here to upload or drag here</Text>
// </Flex>
// </Headings>
// </GridItem>
// </Grid>
// </>
// )
// }
// export default ProfileContainer