Skip to content

Commit

Permalink
feat: fix ppc explore forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarmontuya committed Jan 2, 2024
1 parent 7c6a696 commit dcce892
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.format": false
"source.fixAll.format": "never"
}
}
5 changes: 2 additions & 3 deletions src/components/cta/StandardFormWithSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { Form, Formik } from 'formik';

import TransitionsModal from './TransitionModal';
import { getCookie } from 'cookies-next';
import { SingleFieldForm } from 'revamp/ui/GetDemoSection/SingleFieldForm';
import { Stack } from '@mui/material';
import { validationSchema } from 'revamp/utils/validation';
import getLastVisitedPathAndUrl from 'revamp/utils/getLastVisitedPathAndUrl';
import { MultiFieldForm } from 'revamp/ui/GetDemoSection/MultiFieldForm';

/**
* Possible field option in ZOHO https://crm.zoho.com/crm/org749642405/settings/api/modules/Leads?step=FieldsList
Expand Down Expand Up @@ -197,8 +197,7 @@ function StandardFormWithSelect({
}) => (
<Form id="site-form" onSubmit={handleSubmit}>
<Stack sx={{ mt: 4 }}>
<SingleFieldForm
buttonColor="secondary"
<MultiFieldForm
{...{
handleSubmit,
getFieldProps,
Expand Down
15 changes: 13 additions & 2 deletions src/revamp/ui/GetDemoSection/MultiFieldForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,19 @@ export const MultiFieldForm = ({
</>
)}

<Button type="submit" variant="contained" size="extraLarge" fullWidth>
Contact Us
<Button
sx={{
background: (t) => t.palette.zesty.zestyOrange,
'&:hover': {
background: (t) => t.palette.zesty.zestyOrange,
},
}}
type="submit"
variant="contained"
size="extraLarge"
fullWidth
>
Book Demo
</Button>
</Stack>
</>
Expand Down
6 changes: 0 additions & 6 deletions src/views/zesty/ExploreZestyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,11 @@ const HeroWithIllustrationAndCta = ({
position={'relative'}
sx={{ backgroundColor: theme.palette.alternate.main }}
>
{' '}
<Container>
{' '}
<Grid container spacing={4} flexDirection={{ xs: 'column', md: 'row' }}>
{' '}
<Grid item container alignItems={'center'} xs={12} md={6}>
{' '}
<Box>
{' '}
<Box>
{' '}
<Typography
variant="h6"
component="h1"
Expand Down

0 comments on commit dcce892

Please sign in to comment.