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 => {
19 const isActive = option.value === currentTab;
23 onClick={() => onTabChange(option.value)}
24 className={cn('f5 pv3 mr6 clickable', {
25 'black b-black bb1': isActive,
28 style={{ marginBottom: '-1px' }}>
34 <Grid.Item full as={Tab} className="mt6" {...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