UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Apps
AFEIT
Commits
3efdc8be
Commit
3efdc8be
authored
Apr 12, 2021
by
Kevin Calva
Browse files
adding the rest prop properly (spreading it to child component)
parent
4bc29ed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/components/ContactForm.js
src/components/ContactForm.js
+2
-2
src/pages/solutions.js
src/pages/solutions.js
+6
-1
No files found.
src/components/ContactForm.js
View file @
3efdc8be
...
@@ -16,7 +16,7 @@ import { PrimaryButton } from './core';
...
@@ -16,7 +16,7 @@ import { PrimaryButton } from './core';
const
korolevFont
=
'
korolev, Helvetica Neue, Helvetica, Arial, sans-serif
'
;
const
korolevFont
=
'
korolev, Helvetica Neue, Helvetica, Arial, sans-serif
'
;
const
ContactForm
=
({
onClose
})
=>
{
const
ContactForm
=
({
onClose
,
...
rest
})
=>
{
const
[
submitting
,
setSubmitting
]
=
useState
();
const
[
submitting
,
setSubmitting
]
=
useState
();
const
[
success
,
setSuccess
]
=
useState
();
const
[
success
,
setSuccess
]
=
useState
();
...
@@ -37,7 +37,7 @@ const ContactForm = ({ onClose }) => {
...
@@ -37,7 +37,7 @@ const ContactForm = ({ onClose }) => {
};
};
return
(
return
(
<
Box
role
=
"
dialog
"
aria
-
modal
=
"
true
"
a11yTitle
=
"
request a consultation
"
>
<
Box
{...
rest
}
>
<
Box
<
Box
pad
=
"
medium
"
pad
=
"
medium
"
background
=
"
black
"
background
=
"
black
"
...
...
src/pages/solutions.js
View file @
3efdc8be
...
@@ -111,7 +111,12 @@ const Solutions = ({ data }) => {
...
@@ -111,7 +111,12 @@ const Solutions = ({ data }) => {
}}
}}
>
>
<
Layer
animation
=
"
fadeIn
"
>
<
Layer
animation
=
"
fadeIn
"
>
<
ContactForm
onClose
=
{
handleModalToggle
}
/
>
<
ContactForm
onClose
=
{
handleModalToggle
}
role
=
"
dialog
"
aria
-
modal
=
"
true
"
a11yTitle
=
"
request a consultation
"
/>
<
/Layer
>
<
/Layer
>
<
/ThemeContext.Extend
>
<
/ThemeContext.Extend
>
)}
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment