1import React from 'react';
2import cn from 'classnames';
3import { Grid, Flex } from 'indigo-react';
5export default function Tabs({
13 const Tab = views[currentTab];
16 <Grid className={className}>
17 <Grid.Item full as={Flex} className="b-gray3 bb1 scroll-x hidden-y">
19 {options.map((option, i) => {
20 const isActive = option.value === currentTab;
21 const isFirst = i === 0;
26 onClick={() => onTabChange(option.value)}
28 'f5 pv3 clickable nowrap',
30 'black b-black bb1': isActive,
34 // all items have right margin/padding
36 // the first one is flush to the left
46 <Grid.Item full as={Tab} {...rest} />
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list