@@ -1,11 +1,6 @@
11import React, { Component } from 'react'
2−import * as lodash from 'lodash'
3−import * as sigil from 'sigil-js'
4−import ob from 'urbit-ob'
52
63import Button from '../components/Button'
7−import InputBox from '../components/InputBox'
8−import ReactSVGComponents from '../components/ReactSVGComponents'
94import UploadButton from '../components/UploadButton'
105
116import { compose } from '../lib/lib'
@@ -80,50 +75,49 @@ const validateObject = ({ data, pass, error }) => {
8075 return { data: data, pass: didPass, error: err }
8176}
8277
83−
84−const preview = ship => {
85− const name = ob.patp(ship)
86− const sig = sigil.pour({
87− patp: name,
88− colorway: ['black', 'white'],
89− renderer: ReactSVGComponents,
90− size: 64
91− })
92−
93− return (
94− <div className={'col-md-8'}>
95− <div className={'flex items-center bg-white black'} key={ ship }>
96− <div className={'col-md-5 pt-2 pl-5'}>
97− { sig }
98− </div>
99− <div className={'col-md-5'}>
100− <h4 className={'text-mono text-500 mb-0'}>
101− { name }
102− </h4>
103− </div>
104− </div>
105− </div>
78+// const preview = ship => {
79+// const name = ob.patp(ship)
80+// const sig = sigil.pour({
81+// patp: name,
82+// colorway: ['black', 'white'],
83+// renderer: ReactSVGComponents,
84+// size: 64
85+// })
86+//
87+// return (
88+// <div className={'col-md-8'}>
89+// <div className={'flex items-center bg-white black'} key={ ship }>
90+// <div className={'col-md-5 pt-2 pl-5'}>
91+// { sig }
92+// </div>
93+// <div className={'col-md-5'}>
94+// <h4 className={'text-mono text-500 mb-0'}>
95+// { name }
96+// </h4>
97+// </div>
98+// </div>
99+// </div>
106100 // <div className={'flex h-16 w-60 bg-white black items-center'} key={ ship }>
107101 // { sig }
108102 // <div className={'pl-4 text-mono text-500'}>
109103 // { name }
110104 // </div>
111105 // </div>
112− )
113−}
114−
115−const shipList = profile => {
116− const ships = Object.keys(profile)
117− return(
118− <div>
119− <h2>Total Ships: { ships.length }</h2>
120−
121− <div className={''}>
122− { ships.map(preview) }
123− </div>
124− </div>
125− )
126−}
106+// )
107+// }
108+
109+// const shipList = profile => {
110+// const ships = Object.keys(profile)
111+// return(
112+// <div>
113+// <h2>Total Ships: { ships.length }</h2>
114+//
115+// <div className={''}>
116+// { ships.map(preview) }
117+// </div>
118+// </div>
119+// )
120+// }
127121
128122class Upload extends Component {
129123 constructor(props) {
@@ -242,17 +236,17 @@ class Upload extends Component {
242236 }
243237}
244238
245−const ShipList = (ships, title) => {
246− if (ships.length > 0) {
247− return (
248− <div>
249− <h2>{ title }</h2>
250− { ships.map(ship => preview(ship)) }
251− </div>
252− )
253− } else {
254− return <div />
255− }
256−}
239+// const ShipList = (ships, title) => {
240+// if (ships.length > 0) {
241+// return (
242+// <div>
243+// <h2>{ title }</h2>
244+// { ships.map(ship => preview(ship)) }
245+// </div>
246+// )
247+// } else {
248+// return <div />
249+// }
250+// }
257251
258252export default Upload