File size: 2,028 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
77
import React from 'react';
import { Box, Input, Text, Textarea, VStack } from '@chakra-ui/react';
import {
   CustomizeProfileCard,
   Label,
   titleStyles,
} from '../../../utils/CustomizeProfileStyles';

const Basic = ({
   websiteRef,
   githubRef,
   twitterRef,
   locationRef,
   bioRef,
   profileData,
}) => {
   return (
      <CustomizeProfileCard>
         <Text {...titleStyles}>Basic</Text>

         <VStack spacing={3}>
            <Box w='100%'>
               <Label mb='.3rem'>Website URL</Label>
               <Input
                  defaultValue={profileData?.website}
                  placeholder='https://yoursite.com'
                  type='url'
                  ref={websiteRef}
               />
            </Box>

            <Box w='100%'>
               <Label mb='.3rem'>Github</Label>
               <Input
                  defaultValue={profileData?.github}
                  placeholder='https://github.com/username'
                  type='url'
                  ref={githubRef}
               />
            </Box>

            <Box w='100%'>
               <Label mb='.3rem'>Twitter</Label>
               <Input
                  defaultValue={profileData?.twitter}
                  placeholder='https://twitter.com/username'
                  type='url'
                  ref={twitterRef}
               />
            </Box>

            <Box w='100%'>
               <Label mb='.3rem'>Location</Label>
               <Input
                  defaultValue={profileData?.location}
                  placeholder='Halifax, Nova Scotia'
                  type='text'
                  ref={locationRef}
               />
            </Box>

            <Box w='100%'>
               <Label mb='.3rem'>Bio</Label>

               <Textarea
                  defaultValue={profileData?.bio}
                  placeholder='A Short Bio...'
                  ref={bioRef}
               />
            </Box>
         </VStack>
      </CustomizeProfileCard>
   );
};

export default Basic;