This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/app/components/Tab.js
2019-03-12 22:11:33 -07:00

32 lines
707 B
JavaScript

// @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.divider};
letter-spacing: 0.04em;
margin-right: 24px;
padding-bottom: 8px;
&:hover {
color: ${props => props.theme.text};
}
`;
function Tab(props: *) {
const activeStyle = {
paddingBottom: '5px',
borderBottom: `3px solid ${props.theme.divider}`,
color: props.theme.textTertiary,
};
return <NavItem {...props} activeStyle={activeStyle} />;
}
export default withTheme(Tab);