+ {
+ challenge.status === 'Draft' && (
+
+ {/* Don't disable button for real inside tooltip, otherwise mouseEnter/Leave events work not good */}
+
+
+ )
+ }
+
+ )
}
const renderStatus = (status) => {
diff --git a/src/components/LegacyLinks/index.js b/src/components/LegacyLinks/index.js
index d8c5f889..cf7a8c94 100644
--- a/src/components/LegacyLinks/index.js
+++ b/src/components/LegacyLinks/index.js
@@ -4,7 +4,7 @@
import React, { useCallback } from 'react'
import PropTypes from 'prop-types'
import styles from './LegacyLinks.module.scss'
-import { DIRECT_PROJECT_URL, ONLINE_REVIEW_URL } from '../../config/constants'
+import { DIRECT_PROJECT_URL, MESSAGE, ONLINE_REVIEW_URL } from '../../config/constants'
import PrimaryButton from '../Buttons/PrimaryButton'
import Tooltip from '../Tooltip'
@@ -28,11 +28,11 @@ const LegacyLinks = ({ challenge }) => {
>
) : (
<>
-
+
{/* Don't disable button for real inside tooltip, otherwise mouseEnter/Leave events work not good */}
-
+
{/* Don't disable button for real inside tooltip, otherwise mouseEnter/Leave events work not good */}
diff --git a/src/config/constants.js b/src/config/constants.js
index 344e91fa..c297d61c 100644
--- a/src/config/constants.js
+++ b/src/config/constants.js
@@ -176,3 +176,12 @@ export const GROUPS_DROPDOWN_PER_PAGE = 1000000 // make sure we are getting all
* The list of challenge types which can have multiple prizes
*/
export const CHALLENGE_TYPES_WITH_MULTIPLE_PRIZES = ['Challenge']
+
+/**
+ * All the repeating messages.
+ *
+ * To have the same wording across the app.
+ */
+export const MESSAGE = {
+ NO_LEGACY_CHALLENGE: 'Legacy challenge is not yet created'
+}