File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11import PropTypes from "prop-types"
22import React from "react"
33
4- const RedOutlineButton = ( { children, className } ) => (
4+ const RedOutlineButton = ( { children, className, onClick } ) => (
55 < button
6+ onClick = { onClick }
67 className = { `${ className } cursor-pointer bg-white-full border border-red-light text-red-darkest focus:outline-none font-display rounded-px px-16 py-2 hover:bg-transparent hover:border hover:border-red-darkest` }
78 >
89 { children }
@@ -12,6 +13,7 @@ const RedOutlineButton = ({ children, className }) => (
1213RedOutlineButton . propTypes = {
1314 children : PropTypes . string ,
1415 className : PropTypes . string ,
16+ onClick : PropTypes . func ,
1517}
1618
1719RedOutlineButton . defaultProps = {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import BodyOne from "../typography/BodyOne"
44import RedBlockButton from "../buttons/RedBlockButton"
55import RedOutlineButton from "../buttons/RedOutlineButton"
66import HeroImage from "../../images/hero_image.svg"
7-
7+ import constants from "../../constants"
88const Hero = ( ) => (
99 < >
1010 < div className = "flex lg:flex-row s:flex-col text-left" >
@@ -24,7 +24,10 @@ const Hero = () => (
2424 </ BodyOne >
2525 < RedBlockButton className = "" > Learn now!</ RedBlockButton >
2626
27- < RedOutlineButton className = "s:mt-5 lg:ml-5" >
27+ < RedOutlineButton
28+ className = "s:mt-5 lg:ml-5"
29+ onClick = { ( ) => constants . track ( "App.RedirctToDemo" ) }
30+ >
2831 < a
2932 className = "flex flex-row"
3033 target = "_blank"
You can’t perform that action at this time.
0 commit comments