@@ -56,6 +56,7 @@ TextDisplay.propTypes = {
name: PropTypes.string,
text: PropTypes.string,
rootClass: PropTypes.object,
+ textClass: PropTypes.object,
isMarkdown: PropTypes.bool
}
diff --git a/src/components/projects/FundProject.jsx b/src/components/projects/FundProject.jsx
index ff77a3e..c8f240c 100644
--- a/src/components/projects/FundProject.jsx
+++ b/src/components/projects/FundProject.jsx
@@ -24,7 +24,7 @@ import { convertTokenAmountUsd } from '../../utils/prices'
import { getAmountsPledged } from '../../utils/pledges'
import { useProjectData } from './hooks'
import { getNumberOfBackers, getMediaType, getMediaSrc } from '../../utils/project'
-import { getDateCreated } from '../../utils/dates'
+import { getDateCreated, convertToHours } from '../../utils/dates'
const { addProject } = LiquidPledging.methods
@@ -106,6 +106,9 @@ const styles = theme => ({
gridAutoFlow: 'column',
paddingLeft: '5px'
},
+ halfText: {
+ gridColumnStart: 4
+ },
chatRoomIcon: {
justifySelf: 'auto'
},
@@ -201,7 +204,7 @@ const addProjectSucessMsg = response => {
const { events: { ProjectAdded: { returnValues: { idProject } } } } = response
return `Project created with ID of ${idProject}, will redirect to your new project page in a few seconds`
}
-const SubmissionSection = ({ classes, history, projectData, projectId, pledges }) => {
+const SubmissionSection = ({ classes, history, projectData, projectId, pledges, commitTime }) => {
const [uploads, setUploads] = useState({})
const { account, openSnackBar, prices } = useContext(FundingContext)
const { projectAge, projectAssets, manifest } = projectData
@@ -287,11 +290,13 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges }
name="Contact Person"
text={manifest.creator}
rootClass={classes.contact}
+ textClass={classes.halfText}
/>
@@ -302,10 +307,14 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges }
{manifest.code}
+
)
diff --git a/src/utils/dates.js b/src/utils/dates.js
index f941cd7..12a6e5e 100644
--- a/src/utils/dates.js
+++ b/src/utils/dates.js
@@ -24,3 +24,5 @@ export function getDateCreated(daysSince) {
d.setDate(d.getDate() - daysSince);
return `${d.getMonth()}/${d.getDate()}/${d.getFullYear()}`
}
+
+export const convertToHours = seconds => Number(seconds) / 60 / 60