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} wrap className="b-gray3 bb1">
18 {options.map((option, i) => {
19 const isActive = option.value === currentTab;
20 const isFirst = i === 0;
25 onClick={() => onTabChange(option.value)}
29 'black b-black bb1': isActive,
33 // all items have right margin/padding
35 // the first one is flush to the left
39 style={{ marginBottom: '-1px' }}>
45 <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