1import React, { useRef } from 'react';
2import { Button } from 'indigo-react';
4export default function UploadButton({ children, onChange, ...rest }) {
5 const button = useRef();
8 <label htmlFor="file" {...rest}>
9 <Button accessory="↑" solid>
15 className="super-hidden"
17 onChange={() => onChange(button.current)}
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