From a3ed5426c542eb7bb4e190f4396107dfb5bd1eb9 Mon Sep 17 00:00:00 2001 From: Ahmed-Ayman Date: Thu, 6 Dec 2018 00:02:33 +0200 Subject: [PATCH] fix #3 create a separate counter component --- src/components/Header.js | 17 ++++++++++------- src/stylesheets/style.css | 3 ++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/Header.js b/src/components/Header.js index 4695787..435f8c4 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -6,20 +6,23 @@ class Header extends React.Component { render() { const Logo = () => { return ( -
+
logo 858
logo 858 -

An archive of resistance

-

٩٦٧ ساعة وبيزيدوا

-
+

An archive of resistance

+ + ); + } + const Counter = () => { + return ( +

٩٦٧ ساعة وبيزيدوا

); } return (
-
- -
+ +
) } diff --git a/src/stylesheets/style.css b/src/stylesheets/style.css index ee21208..d42a669 100644 --- a/src/stylesheets/style.css +++ b/src/stylesheets/style.css @@ -61,4 +61,5 @@ header { top: 0; padding: 2em; } -/* search */ \ No newline at end of file +/* search */ +