1import React from 'react'
2import { Button, Chevron } from '../components/Base'
4import { renderRoute } from '../lib/router'
5import { isLast } from '../lib/lib'
7const Crumbs = (props) => {
8 const { routeCrumbs, skipRoute } = props
9 const history = routeCrumbs.reverse()
11 // FIXME probably more straightforward to render them normally and just
12 // return the reversed array of renders
13 const rendered = history.map((route, idx) => {
16 <div className={'flex items-center'} key={ `history-${idx}` }>
22 key={ `history-button-${idx}` }
23 onClick={ () => skipRoute(history.size - idx - 1) }
25 { `${renderRoute(props, route)}` }
29 isLast(history.size, idx)
31 : <Chevron className={'h-4 mh-2'} />
41const Header = (props) =>
42 <div className={'flex items-center h-8 pt-4'}>
44 routeCrumbs={ props.routeCrumbs }
45 skipRoute={ props.skipRoute }
46 networkType={ props.networkType }
47 wallet={ props.wallet }
48 pointCursor={ props.pointCursor }
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