1import React from 'react'
2import PropTypes from 'prop-types'
4import { pour } from 'sigil-js'
5import * as ob from 'urbit-ob'
6import ReactSVGComponents from '../components/ReactSVGComponents'
8const isValidPatp = patp => {
11 isValid = ob.isValidPatp(patp)
19const ValidatedSigil = ({
33 const colorStyle = styleSelector(displayPass, displayFailure, focussed);
36 <div className={`${className}`} style={style}>
41 renderer: ReactSVGComponents,
46 : <div className={'bg-transparent'} style={{
58const styleSelector = (pass, fail, focus) => {
59 if (fail === true) return ['#FFFFFF', '#F8C134'];
60 if (pass === true) return ['#FFFFFF', '#2AA779'];
61 if (focus === true) return ['#FFFFFF', '#4330FC'];
62 return ['#FFFFFF', '#7F7F7F'];
66ValidatedSigil.propTypes = {
67 className: PropTypes.string,
68 children: PropTypes.node,
69 style: PropTypes.object,
73ValidatedSigil.defaultProps = {
79export default ValidatedSigil;
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