Skip to content

Instantly share code, notes, and snippets.

@Saifadin
Created December 17, 2018 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saifadin/820185e0916a3e4948733dd725b6529c to your computer and use it in GitHub Desktop.
Save Saifadin/820185e0916a3e4948733dd725b6529c to your computer and use it in GitHub Desktop.
Why we use CSS-in-JS 4
import React from 'react';
import { Translate } from 'react-redux-i18n';
import { Header, Logo, Menu, MenuItem, Spacer } from './styles';
const Navigation = ({ email }) => {
return (
<Header>
<Logo name="logo-small" fill="primary" color="primary" size="large" />
<Menu>
<MenuItem to="/payments" activeClassName="isActive">
<Translate value="shared.header.payments" />
</MenuItem>
<MenuItem to="/change" activeClassName="isActive">
<Translate value="shared.header.change" />
</MenuItem>
</Menu>
<Spacer />
</Header>
);
};
export default Navigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment