1import React, { MouseEvent } from 'react';
2import { Box } from '@tlon/indigo-react';
6export interface ModalProps {
11 children: React.ReactNode;
14export default function Modal({
21 const dontHide = (e: MouseEvent) => {
30 <Box className={`modal${small ? ' modal-small' : ''}`} onClick={hide}>
31 <Box className="content">
33 <Box className="close" onClick={hide}>
37 <Box onClick={dontHide}>{children}</Box>
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