Improve animations

This commit is contained in:
Tom Raithel
2017-03-01 20:34:08 +01:00
parent 5f20c00bec
commit 6d4f1d0c09
5 changed files with 315 additions and 42 deletions

View File

@@ -2,14 +2,14 @@ import React from 'react';
import { connect } from 'react-redux';
import actions from '../actions';
function Link({ pageName, children, navigate, className}) {
function Link({ pageName, children, navigate, className, style = {}}) {
const handleClick = (e) => {
e.preventDefault();
navigate(pageName);
};
return (
<a href={`/${pageName}.html`} onClick={handleClick} {...{ className }}>
<a href={`/${pageName}.html`} onClick={handleClick} style={style} {...{ className }}>
{children}
</a>
);