From eb8251cce896e036b1c305051b65477d836a522b Mon Sep 17 00:00:00 2001 From: karkir0003 Date: Sun, 24 Dec 2023 13:48:18 -0500 Subject: [PATCH] prop fix --- components/Main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/Main.js b/components/Main.js index 50a0a34..d3ce298 100644 --- a/components/Main.js +++ b/components/Main.js @@ -3,13 +3,13 @@ import PropTypes from 'prop-types'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faTwitter, faFacebook, faInstagram, faGithub} from '@fortawesome/fontawesome-free-brands'; -const Main = ({route, article, articleTimeout, onCloseArticle, timeout}) => { - let close =
{onCloseArticle()}}>
+const Main = (props) => { + let close =
{props.onCloseArticle()}}>
return ( -
+
-
+

Intro

Aenean ornare velit lacus, ac varius enim ullamcorper eu. Proin aliquam facilisis ante interdum congue. Integer mollis, nisl amet convallis, porttitor magna ullamcorper, amet egestas mauris. Ut magna finibus nisi nec lacinia. Nam maximus erat id euismod egestas. By the way, check out my awesome work.

@@ -17,7 +17,7 @@ const Main = ({route, article, articleTimeout, onCloseArticle, timeout}) => { {close}
-
+

Work

Adipiscing magna sed dolor elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices.

@@ -25,14 +25,14 @@ const Main = ({route, article, articleTimeout, onCloseArticle, timeout}) => { {close}
-
+

About

Lorem ipsum dolor sit amet, consectetur et adipiscing elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices. Aliquam libero et malesuada fames ac ante ipsum primis in faucibus. Cras viverra ligula sit amet ex mollis mattis lorem ipsum dolor sit amet.

{close}
-
+

Contact