generated from ctc-uci/npo-frontend-vite-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a226bc9
commit b97ad5c
Showing
2 changed files
with
21 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import { | |
Flex, | ||
VStack, | ||
Box, | ||
Spacer, | ||
Card, | ||
HStack, | ||
Tabs, | ||
|
@@ -22,6 +21,13 @@ import { useBackend } from '../contexts/BackendContext'; | |
import { useAuth } from '../contexts/AuthContext'; | ||
import ReferenceGuide from '../components/ReferenceGuide.jsx'; | ||
|
||
const formLabelStyles = { | ||
minWidth: '150px', | ||
fontSize: '16px', | ||
fontWeight: 'bold', | ||
alignItems: 'center', | ||
}; | ||
|
||
const EditContactInformation = () => { | ||
const { backend } = useBackend(); | ||
const { currentUser } = useAuth(); | ||
|
@@ -185,8 +191,6 @@ const EditContactInformation = () => { | |
<Heading fontSize="3xl" textAlign={'left'}> | ||
Settings | ||
</Heading> | ||
|
||
<Spacer /> | ||
</Box> | ||
|
||
<Tabs colorScheme="teal"> | ||
|
@@ -197,12 +201,10 @@ const EditContactInformation = () => { | |
|
||
<TabPanels> | ||
<TabPanel display={'flex'} flexDirection={'column'} padding={0} gap={4}> | ||
<Card padding={3}> | ||
<FormControl> | ||
<Card paddingX={6} paddingY={4}> | ||
<FormControl sx={{ display: 'flex', flexDirection: 'column', gap: 4 }}> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
BUSINESS NAME | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>BUSINESS NAME</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="Enter Business Name" | ||
|
@@ -217,9 +219,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
NAME | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>NAME</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="Enter First Name" | ||
|
@@ -236,9 +236,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>EMAIL</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="[email protected]" | ||
|
@@ -248,9 +246,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
WEBSITE | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>WEBSITE</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="example.com" | ||
|
@@ -260,9 +256,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
LOCATION | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>LOCATION</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="123 Address Lane" | ||
|
@@ -272,9 +266,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
CITY | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>CITY</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="City" | ||
|
@@ -310,9 +302,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
PHONE | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>PHONE</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="(xxx) xxx-xxxx" | ||
|
@@ -322,9 +312,7 @@ const EditContactInformation = () => { | |
/> | ||
</HStack> | ||
<HStack> | ||
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}> | ||
BUSINESS HOURS | ||
</FormLabel> | ||
<FormLabel sx={formLabelStyles}>BUSINESS HOURS</FormLabel> | ||
<Input | ||
type="text" | ||
placeholder="M-F 8:00 am - 10:00 pm" | ||
|
@@ -359,7 +347,7 @@ const EditContactInformation = () => { | |
</Box> | ||
</TabPanel> | ||
|
||
<TabPanel> | ||
<TabPanel padding={0}> | ||
<ReferenceGuide /> | ||
</TabPanel> | ||
</TabPanels> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,9 @@ const ReferenceGuide = () => { | |
return ( | ||
<Card width={'100%'}> | ||
<CardBody> | ||
<Text padding={'0px 0px 20px 0px'} display={'flex'}> | ||
Refer to the following if you have any questions, otherwise contact us at | ||
<Text pl={1} textDecoration={'underline'}> | ||
<Text paddingBottom={5} display={'inline-block'} as={'span'}> | ||
Refer to the following if you have any questions, otherwise contact us at | ||
<Text textDecoration={'underline'} display={'inline'} as={'p'}> | ||
[email protected] | ||
</Text> | ||
</Text> | ||
|