WIP: Dashboard tabs

This commit is contained in:
Tom Moor
2018-08-09 23:14:51 -07:00
parent d222a311ad
commit 2f681b1ce8
9 changed files with 182 additions and 147 deletions

26
app/components/Tab.js Normal file
View File

@@ -0,0 +1,26 @@
// @flow
import * as React from 'react';
import styled, { withTheme } from 'styled-components';
import { NavLink } from 'react-router-dom';
const NavItem = styled(NavLink)`
display: inline-block;
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
color: ${props => props.theme.slate};
letter-spacing: 0.04em;
margin-right: 20px;
padding-bottom: 8px;
`;
function Tab(props: *) {
const activeStyle = {
paddingBottom: '5px',
borderBottom: `3px solid ${props.theme.slateLight}`,
};
return <NavItem {...props} activeStyle={activeStyle} />;
}
export default withTheme(Tab);