diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 00000000..d52405c8
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+github: [saadq]
diff --git a/app/client/src/app/pages/Error404.js b/app/client/src/app/pages/Error404.js
index f642e73b..420506c6 100644
--- a/app/client/src/app/pages/Error404.js
+++ b/app/client/src/app/pages/Error404.js
@@ -4,7 +4,6 @@
import React from 'react'
import styled from 'styled-components'
-import { darken, rgba } from 'polished'
import { PrimaryButton } from '../../common/components'
import { colors } from '../../common/theme'
import comic from '../assets/comic.png'
diff --git a/app/client/src/features/form/actions.js b/app/client/src/features/form/actions.js
index b79da605..fecc4718 100644
--- a/app/client/src/features/form/actions.js
+++ b/app/client/src/features/form/actions.js
@@ -186,6 +186,19 @@ function removeAward(): Action {
}
}
+function moveJobUp(index: number): Action {
+ return {
+ type: 'MOVE_JOB_UP',
+ index
+ }
+}
+function moveJobDown(index: number): Action {
+ return {
+ type: 'MOVE_JOB_DOWN',
+ index
+ }
+}
+
export {
uploadJSON,
uploadJSONRequest,
@@ -210,5 +223,7 @@ export {
removeProjectKeyword,
addAward,
removeAward,
- uploadFileAndGenerateResume
+ uploadFileAndGenerateResume,
+ moveJobUp,
+ moveJobDown
}
diff --git a/app/client/src/features/form/components/fragments/Job.js b/app/client/src/features/form/components/fragments/Job.js
index b4e17bb1..d8d634e1 100644
--- a/app/client/src/features/form/components/fragments/Job.js
+++ b/app/client/src/features/form/components/fragments/Job.js
@@ -32,13 +32,43 @@ type Props = {
highlights: Array,
index: number,
addHighlight: (index: number) => void,
- removeHighlight: (index: number) => void
+ removeHighlight: (index: number) => void,
+ jobCount: number,
+ moveUp: (index: number) => void,
+ moveDown: (index: number) => void
}
-function Job({ highlights, index, addHighlight, removeHighlight }: Props) {
+function Job({
+ highlights,
+ index,
+ addHighlight,
+ removeHighlight,
+ jobCount,
+ moveUp,
+ moveDown
+}: Props) {
return (
{index > 0 ?
: null}
+
+
+
+ moveUp(index)}
+ >
+
+
+ = jobCount - 1}
+ type="button"
+ onClick={() => moveDown(index)}
+ >
+
+
+
+
void,
removeJob: () => void,
addJobHighlight: (index: number) => void,
- removeJobHighlight: (index: number) => void
+ removeJobHighlight: (index: number) => void,
+ moveJobUp: (index: number) => void,
+ moveJobDown: (index: number) => void
}
function Work({
work,
+ jobCount = work.length,
addJob,
removeJob,
addJobHighlight,
- removeJobHighlight
+ removeJobHighlight,
+ moveJobUp,
+ moveJobDown
}: Props) {
return (
@@ -49,6 +56,9 @@ function Work({
highlights={job.highlights}
addHighlight={addJobHighlight}
removeHighlight={removeJobHighlight}
+ jobCount={jobCount}
+ moveUp={moveJobUp}
+ moveDown={moveJobDown}
/>
))}