1import React from 'react';
2import cn from 'classnames';
3import { Grid, AccessoryIcon } from 'indigo-react';
5export default function Accordion({
15 const Tab = views[currentTab];
18 <Grid className={className}>
19 {options.map((option, i) => {
20 const isActive = option.value === currentTab;
23 <React.Fragment key={option.value}>
26 className={cn('f5 pv3 rel', {
27 pointer: !option.disabled,
28 gray3: option.disabled,
33 : () => onTabChange(isActive ? undefined : option.value)
37 <sup className="f6 lowercase">{option.disabled}</sup>
50 black: !option.disabled,
52 {isActive ? '▲' : '▼'}
56 {isActive && <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