Skip to content

Commit

Permalink
fixed linting fr this time LOL
Browse files Browse the repository at this point in the history
  • Loading branch information
tdanielles committed Jul 23, 2024
1 parent 8c5d6eb commit e26aec2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
19 changes: 15 additions & 4 deletions pages/hackerapps/[id]/basicinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@ export default ({ id, hackathons }) => {
])

const addQuestion = index => {
const newQuestions = [...questions];
newQuestions.splice(index + 1, 0, { title: '', description: '', type: '', options: [''], other: false, required: false });
setQuestions(newQuestions);
const newQuestions = [...questions]
newQuestions.splice(index + 1, 0, {
title: '',
description: '',
type: '',
options: [''],
other: false,
required: false,
})
setQuestions(newQuestions)
}

const removeQuestion = index => {
Expand Down Expand Up @@ -104,7 +111,11 @@ export default ({ id, hackathons }) => {
moveDown={moveDown}
duplicateQuestion={duplicateQuestion}
/>
<StyledQuestionButton onClick={() => {addQuestion(index)}}>
<StyledQuestionButton
onClick={() => {
addQuestion(index)
}}
>
<Icon color={COLOR.MIDNIGHT_PURPLE_DEEP} icon="plus-circle" />
</StyledQuestionButton>
</React.Fragment>
Expand Down
21 changes: 16 additions & 5 deletions pages/hackerapps/[id]/skills.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,17 @@ export default ({ id, hackathons }) => {
{ title: '', description: '', type: '', options: [''], other: false, required: false },
])

const addQuestion = (index) => {
const newQuestions = [...questions];
newQuestions.splice(index + 1, 0, { title: '', description: '', type: '', options: [''], other: false, required: false });
setQuestions(newQuestions);
const addQuestion = index => {
const newQuestions = [...questions]
newQuestions.splice(index + 1, 0, {
title: '',
description: '',
type: '',
options: [''],
other: false,
required: false,
})
setQuestions(newQuestions)
}

const removeQuestion = index => {
Expand Down Expand Up @@ -104,7 +111,11 @@ export default ({ id, hackathons }) => {
moveDown={moveDown}
duplicateQuestion={duplicateQuestion}
/>
<StyledQuestionButton onClick={() => {addQuestion(index)}}>
<StyledQuestionButton
onClick={() => {
addQuestion(index)
}}
>
<Icon color={COLOR.MIDNIGHT_PURPLE_DEEP} icon="plus-circle" />
</StyledQuestionButton>
</React.Fragment>
Expand Down
9 changes: 2 additions & 7 deletions pages/hackerapps/[id]/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const StyledReactQuill = styled(ReactQuill)`
color: ${COLOR.MIDNIGHT_PURPLE_DEEP};
.ql-snow .ql-editor {
font-family: 'HK Grotesk';
font-family: 'HK Grotesk';
}
.ql-container {
Expand Down Expand Up @@ -77,12 +77,7 @@ export default ({ id, hackathons }) => {
customValue={title}
onChangeCustomValue={e => setTitle(e.target.value)}
/>
<StyledReactQuill
theme="snow"
modules={descModules}
formats={formats}
placeholder="Write a description..."
/>
<StyledReactQuill theme="snow" modules={descModules} formats={formats} placeholder="Write a description..." />
</StyledTextComponent>
</Page>
</>
Expand Down

0 comments on commit e26aec2

Please sign in to comment.