Skip to content

Commit

Permalink
Merge pull request #1951 from dev-launchers/development/ideaspace
Browse files Browse the repository at this point in the history
Development/ideaspace
  • Loading branch information
dbradham authored Sep 8, 2024
2 parents a553a44 + fa4adfd commit a58a2d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
8 changes: 4 additions & 4 deletions apps/ideaspace/src/components/common/IdeaForm/IdeaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,25 @@ const IdeaForm = (
<atoms.Box flexDirection="column" alignItems="flex-start">
<atoms.Radio
onChange={(e, label) =>
setFieldValue('involveLevel', label)
setFieldValue('involveLevel', 'highly')
}
label='I want to "own" this idea from beginning to end'
/>
<atoms.Radio
onChange={(e, label) =>
setFieldValue('involveLevel', label)
setFieldValue('involveLevel', 'medium')
}
label='I want to "own" this idea only after it is approved as a project'
/>
<atoms.Radio
onChange={(e, label) =>
setFieldValue('involveLevel', label)
setFieldValue('involveLevel', 'minimum')
}
label='I want to "own" this idea during workshopping only'
/>
<atoms.Radio
onChange={(e, label) =>
setFieldValue('involveLevel', label)
setFieldValue('involveLevel', 'none')
}
label="I don't want to be involved after submitting"
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from 'react';
import { useState } from 'react';
import { useRouter } from 'next/router';
import { useUserDataContext } from '@devlaunchers/components/context/UserDataContext';
import { agent } from '@devlaunchers/utility';
Expand Down Expand Up @@ -31,18 +31,6 @@ function SubmissionForm() {
['primary', 'close']
);

const getDBInvolveLevel = (involveString) => {
if (involveString.includes('to end')) {
return 'highly';
} else if (involveString.includes('during workshopping')) {
return 'medium';
} else if (involveString.includes('after it is approved')) {
return 'minimum';
} else {
return 'none';
}
};

const initialValues = {
ideaName: '',
tagline: '',
Expand Down Expand Up @@ -74,11 +62,8 @@ function SubmissionForm() {
values['features'] = values['features'].trim();
values['experience'] = values['experience'].trim();
values['extraInfo'] = values['extraInfo'].trim();
const involveValueForDataBase = getDBInvolveLevel(
values['involveLevel'].trim()
);
values['involveLevel'] = values['involveLevel'].trim();

values['involveLevel'] = involveValueForDataBase;
setSending(true);

try {
Expand Down Expand Up @@ -150,7 +135,8 @@ function SubmissionForm() {
<atoms.Typography type="h4">
Have an idea for a software project but need developers to build it?
<br />
Bring your idea to us - we will work with you to spin up a project to bring it to life!
Bring your idea to us - we will work with you to spin up a project to
bring it to life!
</atoms.Typography>
</HeadWapper>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ function SingleCommentComponent(props) {
</div>
</SingleCommentContent>
<SingleCommentButtons style={{ display: 'flex' }}>
<LikeButton
{/* <LikeButton
style={{ marginLeft: 'auto' }}
onClick={handleLikeClick}
filled={liked ? true : false}
text={liked ? '479' : 'Like'}
/>
/> */}
</SingleCommentButtons>
<hr></hr>
</div>
Expand Down

0 comments on commit a58a2d7

Please sign in to comment.