diff --git a/src/components/Button.js b/src/components/Button.js new file mode 100644 index 0000000..1400c9d --- /dev/null +++ b/src/components/Button.js @@ -0,0 +1,21 @@ +import React from 'react' +import { Link } from 'react-router-dom'; + +const Button = (props) => { + switch (props.btnType) { + case 'success': + return (); + case 'success-as-link': + return ({props.children}) + default: + return (); + } +}; + +export default Button diff --git a/src/components/footer.js b/src/components/footer.js index aeed9d3..c9f1bd1 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -1,6 +1,7 @@ import React from 'react' import { Link } from 'react-router-dom' import { BsLinkedin, BsTwitter, BsFacebook } from "react-icons/bs"; +import Button from './Button'; const Footer = () => { @@ -73,7 +74,7 @@ const Footer = () => {
- +
diff --git a/src/components/navbar.js b/src/components/navbar.js index 71b076d..427c4ec 100644 --- a/src/components/navbar.js +++ b/src/components/navbar.js @@ -1,6 +1,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; import { images } from '../assets'; +import Button from './Button'; const NavBar = () => { @@ -8,9 +9,9 @@ const NavBar = () => {