1import ob from 'urbit-ob';
2import { Box, Button } from '@tlon/indigo-react';
3import { Ship } from '@urbit/roller-api';
4import Sigil from 'components/Sigil';
5import { useCallback } from 'react';
7interface RequestRowProps {
9 onAccept: (point: Ship) => Promise<void>;
10 onReject: (point: Ship) => Promise<void>;
13export const RequestRow = ({ point, onAccept, onReject }: RequestRowProps) => {
14 const handleAcceptClick = useCallback(async () => {
15 await onAccept(point);
16 }, [onAccept, point]);
18 const handleRejectClick = useCallback(async () => {
19 await onReject(point);
20 }, [onReject, point]);
24 <Box className={'point-wrapper'}>
25 <Box className="sigil">
26 <Box className="sigil-container">
31 colors={['#000000', '#FFFFFF']}
35 <Box className={'patp'}>{ob.patp(point)}</Box>
37 <Box className="button-wrapper">
38 <Button className="primary" onClick={handleAcceptClick}>
41 <Button className="secondary" onClick={handleRejectClick}>
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