diff --git a/src/constants/index.ts b/src/constants/index.ts
index 23f04e9..2c9c851 100644
--- a/src/constants/index.ts
+++ b/src/constants/index.ts
@@ -32,3 +32,4 @@ export const TRANSPARENCY_API = config.get('DCL_DATA_API')
export const VESTING_DASHBOARD_URL = config.get('VESTING_DASHBOARD_URL')
export const GRANT_PROPOSAL_SUBMIT_ENABLED = false
export const PITCH_PROPOSAL_SUBMIT_ENABLED = false
+export const LINKED_WEARABLES_PROPOSAL_SUBMIT_ENABLED = false
diff --git a/src/pages/submit/index.tsx b/src/pages/submit/index.tsx
index 453d307..d7bb229 100644
--- a/src/pages/submit/index.tsx
+++ b/src/pages/submit/index.tsx
@@ -10,7 +10,11 @@ import {
AddRemoveProposalModal,
AddRemoveProposalModalProps,
} from '../../components/Modal/AddRemoveProposalModal/AddRemoveProposalModal'
-import { GRANT_PROPOSAL_SUBMIT_ENABLED, PITCH_PROPOSAL_SUBMIT_ENABLED } from '../../constants'
+import {
+ GRANT_PROPOSAL_SUBMIT_ENABLED,
+ LINKED_WEARABLES_PROPOSAL_SUBMIT_ENABLED,
+ PITCH_PROPOSAL_SUBMIT_ENABLED,
+} from '../../constants'
import useFormatMessage from '../../hooks/useFormatMessage'
import { CatalystType, HiringType, PoiType, ProposalType } from '../../types/proposals'
import { getCommitteesWithOpenSlots } from '../../utils/committee'
@@ -81,7 +85,9 @@ export default function SubmitPage() {
onClick={() => setProposalModalProps({ ...POI_MODAL_PROPS, open: true })}
/>
-
+ {LINKED_WEARABLES_PROPOSAL_SUBMIT_ENABLED && (
+
+ )}
{GRANT_PROPOSAL_SUBMIT_ENABLED && (
) => {
export default function SubmitLinkedWearables() {
const t = useFormatMessage()
const [account, accountState] = useAuthContext()
+ const navigate = useNavigate()
+
+ if (!LINKED_WEARABLES_PROPOSAL_SUBMIT_ENABLED) {
+ navigate('/submit')
+ }
+
const {
handleSubmit,
formState: { isDirty, isSubmitting, errors },
@@ -122,7 +129,6 @@ export default function SubmitLinkedWearables() {
const [error, setError] = useState('')
const preventNavigation = useRef(false)
const values = useWatch({ control })
- const navigate = useNavigate()
const setCoAuthors = (addresses?: string[]) => setValue('coAuthors', addresses)