Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Saddlemountain Page
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Verónica Silva
Saddlemountain Page
Commits
eadfdcf2
Commit
eadfdcf2
authored
Nov 23, 2021
by
VeroSilva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Component ContactButton
parent
73496a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
src/components/ContactButton.jsx
src/components/ContactButton.jsx
+39
-0
No files found.
src/components/ContactButton.jsx
0 → 100644
View file @
eadfdcf2
import
React
from
"
react
"
import
PropTypes
from
"
prop-types
"
import
{
styled
}
from
"
@mui/material/styles
"
import
Button
from
"
@mui/material/Button
"
import
ArrowForwardIosRoundedIcon
from
"
@mui/icons-material/ArrowForwardIosRounded
"
import
theme
from
"
./palette
"
const
myPalette
=
theme
.
palette
const
CustomButton
=
styled
(
Button
)(({
theme
})
=>
({
color
:
myPalette
.
secondary
.
contrastText
,
backgroundColor
:
myPalette
.
secondary
.
main
,
"
&:hover
"
:
{
backgroundColor
:
myPalette
.
secondary
.
light
,
},
}))
ContactButton
.
propTypes
=
{
children
:
PropTypes
.
element
.
isRequired
,
}
function
ContactButton
({
children
})
{
return
(
<
CustomButton
variant=
"contained"
type=
"submit"
fullWidth
sx=
{
{
mt
:
1
,
mb
:
2
}
}
endIcon=
{
<
ArrowForwardIosRoundedIcon
/>
}
>
{
children
}
</
CustomButton
>
)
}
export
default
ContactButton
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