Basic navs and auth pages working·
This commit is contained in:
parent
33e8a9f384
commit
3ef6f3c80b
20 changed files with 222 additions and 33 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import { Nav } from 'react-bootstrap';
|
||||
import { translate } from 'react-i18next';
|
||||
/*
|
||||
FIXME:
|
||||
navitem needs a nav-link class but does not works
|
||||
|
|
@ -10,15 +11,15 @@ import { Nav } from 'react-bootstrap';
|
|||
*/
|
||||
import NavItem from '../NavItem/NavItem';
|
||||
|
||||
const PublicNavigation = () => (
|
||||
const PublicNavigation = (props) => (
|
||||
<Nav pullRight>
|
||||
<LinkContainer className="nav-item" anchorClassName="nav-link" to="/signup">
|
||||
<NavItem eventKey={1} href="/signup">Sign Up</NavItem>
|
||||
<NavItem eventKey={1} href="/signup">{props.t('Registrarse')}</NavItem>
|
||||
</LinkContainer>
|
||||
<LinkContainer className="nav-item" anchorClassName="nav-link" to="/login">
|
||||
<NavItem eventKey={2} href="/login">Log In</NavItem>
|
||||
<NavItem eventKey={2} href="/login">{props.t('Iniciar sesión')}</NavItem>
|
||||
</LinkContainer>
|
||||
</Nav>
|
||||
);
|
||||
|
||||
export default PublicNavigation;
|
||||
export default translate([], { wait: true })(PublicNavigation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue