1import React from 'react';
2import cn from 'classnames';
3import { Just, Nothing } from 'folktale/maybe';
4import * as ob from 'urbit-ob';
5import { take } from 'lodash';
7import MaybeSigil from 'components/MaybeSigil';
9const InviteSigilList = ({ className, pendingPoints, acceptedPoints }) => {
10 const _acceptedPoints = take(
11 acceptedPoints.getOrElse([]).map(x => Just(ob.patp(x))),
15 const _pendingPoints = take(
16 pendingPoints.getOrElse([]).map(x => Just(ob.patp(x))),
17 6 - _acceptedPoints.length
22 Math.max(6 - _acceptedPoints.length - _pendingPoints.length, 0)
24 ].map(() => Nothing());
26 const renderSigil = (points, colors, klassName) => {
29 {points.map((point, idx) => (
32 title={point.getOrElse(null)}
33 className={cn(klassName, 'h9 w9')}>
34 <MaybeSigil patp={point} size={50} colors={colors} />
42 <div className={cn('flex justify-between', className)}>
43 {renderSigil(_acceptedPoints, ['#000000', '#FFFFFF'])}
44 {renderSigil(_pendingPoints, ['#ee892b', '#FFFFFF'])}
45 {renderSigil(empty, [], 'b1 b-gray3 b-dashed')}
50export default InviteSigilList;
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