From 0c8c198d6f71383810cff53c2efa09cd0cb1de00 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Fri, 2 Aug 2019 11:09:48 -0400 Subject: [PATCH] remove first half unused input from display --- src/components/projects/FundProject.jsx | 125 +----------------------- 1 file changed, 1 insertion(+), 124 deletions(-) diff --git a/src/components/projects/FundProject.jsx b/src/components/projects/FundProject.jsx index c8f240c..3922dcc 100644 --- a/src/components/projects/FundProject.jsx +++ b/src/components/projects/FundProject.jsx @@ -1,13 +1,9 @@ -import React, { createRef, useState, useContext, useMemo } from 'react' +import React, { useState, useContext, useMemo } from 'react' import { Formik } from 'formik' import classnames from 'classnames' -import ReactMarkdown from 'react-markdown' import LiquidPledging from '../../embarkArtifacts/contracts/LiquidPledging' -import FormControlLabel from '@material-ui/core/FormControlLabel' -import Switch from '@material-ui/core/Switch' import Button from '@material-ui/core/Button' import Typography from '@material-ui/core/Typography' -import InputAdornment from '@material-ui/core/InputAdornment' import { withStyles } from '@material-ui/core/styles' import withObservables from '@nozbe/with-observables' import { Q } from '@nozbe/watermelondb' @@ -18,7 +14,6 @@ import {ZERO_ADDRESS} from '../../utils/address' import CurrencySelect from '../base/CurrencySelect' import StatusTextField from '../base/TextField' import TextDisplay from '../base/TextDisplay' -import IconTextField from '../base/IconTextField' import Icon from '../base/icons/IconByName' import { convertTokenAmountUsd } from '../../utils/prices' import { getAmountsPledged } from '../../utils/pledges' @@ -30,7 +25,6 @@ const { addProject } = LiquidPledging.methods const hoursToSeconds = hours => hours * 60 * 60 -const helperText = 'The length of time the Project has to veto when the project delegates to another delegate and they pledge those funds to a project' const generateChatRoom = title => `#status-${title.replace(/\s/g, '')}` @@ -195,7 +189,6 @@ const createJSON = values => { return JSON.stringify(manifest, null, 2) } -let uploadInput = createRef() const getProjectId = response => { const { events: { ProjectAdded: { returnValues: { idProject } } } } = response return idProject @@ -315,119 +308,6 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges, name="Commit time (hours)" text={commitTime} /> - - { - const activeField = 'avatar' - setStatus({ ...status, activeField }) - uploadInput.click() - } - } - >Browse - - - )} - className={fullWidth} - idFor="avatar" - name="avatar" - placeholder="upload or enter link to creator avatar" - onChange={handleChange} - onBlur={handleBlur} - value={values.avatar || ''} - /> - - { - const activeField = 'video' - setStatus({ ...status, activeField }) - uploadInput.click() - } - } - >Browse - - - )} - className={fullWidth} - idFor="video" - name="video" - placeholder="Upload video or enter url" - onChange={handleChange} - onBlur={handleBlur} - value={values.video || ''} - /> - - } - label="Autoplay video?" - /> - {status && status.showPreview && -
-
{ - setStatus({ ...status, showPreview: false }) - }} - > - Hide preview -
- -
} - {(!status || !status.showPreview) && { - setStatus({ ...status, showPreview: true }) - }} - > - Preview - - } - />} - }
@@ -457,9 +337,6 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges, value={values.goal || ''} /> { - uploadInput = input - }} type="file" multiple onChange={