on master help sign in
senate: only show document poll list if not empty
c9823c9fang
src/views/Senate.js+24−36
@@ -190,42 +190,30 @@ export default function Senate() {
190 {majorityList}
190 {majorityList}
191 </Grid.Item>
191 </Grid.Item>
192
192
193+ {openList.length > 0 && (
194+ <>
193− <Grid.Divider className="mv4" />
195+ <Grid.Divider className="mv4" />
194−
196+
195− <Grid.Item full as={Grid}>
197+ <Grid.Item full as={Grid}>
196− <Grid.Item full as={P}>
198+ <Grid.Item full as={P}>
197− Open document polls:
199+ Open document polls:
198− </Grid.Item>
200+ </Grid.Item>
199− {openList}
201+ {openList}
200− </Grid.Item>
202+ </Grid.Item>
201−
203+
202− <BridgeForm onValues={onDocumentChange}>
204+ <BridgeForm onValues={onDocumentChange}>
203− {({ onSubmit, values }) => (
205+ {({ onSubmit, values }) => (
204− // <>
206+ // <>
205− <Grid.Item
207+ <Grid.Item
206− full
208+ full
207− as={InlineEthereumTransaction}
209+ as={InlineEthereumTransaction}
208− {...bind}
210+ {...bind}
209− onReturn={didVote}
211+ onReturn={didVote}
210− />
211−
212− // <Grid.Divider />
213− //
214− // <Grid.Item
215− // full
216− // as={Input}
217− // type="textarea"
218− // placeholder="Input some text to find its hash..."
219− // name="document"
220− // className="mt4"
221− // />
212+ />
222− //
213+ )}
223− // <Grid.Item full as={CopiableAddress}>
214+ </BridgeForm>
224− // {documentHash}
225− // </Grid.Item>
226− // </>
215+ </>
227− )}
216+ )}
228− </BridgeForm>
229 </Grid>
217 </Grid>
230 </View>
218 </View>
231 );
219 );