From 9e386292e984268735694f2a83349550c19a0685 Mon Sep 17 00:00:00 2001 From: Andrei Volchenko Date: Wed, 20 Sep 2017 22:25:24 +0300 Subject: [PATCH] make header more configurable --- src/components/Header/Header.js | 11 ++++------- src/components/Header/Header.story.js | 10 +++++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index 5916372..ded26cc 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -1,15 +1,13 @@ import { h } from 'preact'; import Icon from 'react-fontawesome'; -const backgroundImage = require('../../assets/images/header-bg.png'); - -const Header = ({ username }) => ( -
- CSS Quickdraw +const Header = ({ productName, username, style }) => ( +
+ { productName } - {username} + { username }