From f3b6420d02743f6840408293702f814fd15406a9 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 23 May 2018 02:51:49 +0300 Subject: [PATCH] Footer updated + added dynamic copyright --- src/components/Footer.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Footer.js b/src/components/Footer.js index 68856c99..8c6fd523 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -1,6 +1,7 @@ const React = require('react') const mailto = email => `mailto:${email}` +const currentYear = () => (new Date()).getFullYear() const Footer = ({children, address, telephone, email, showAuthor}) => ( ) +const Copyright = ({yearStart, yearEnd}) => ( + © {yearStart}—{yearEnd} Шлиссельбургская детская художественная школа +) + module.exports = Footer