diff --git a/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js b/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js
index 90b2cc2be..df0832e32 100644
--- a/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js
+++ b/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js
@@ -10,14 +10,12 @@ import { LikeButton } from '@devlaunchers/components/src/components/molecules';
import { useUserDataContext } from '@devlaunchers/components/context/UserDataContext';
import { agent } from '@devlaunchers/utility';
-
function IdeaCard({ cards, cardType }) {
const [tagContent, setTagContent] = useState(cards.status);
const [buttonContent, setButtonContent] = useState('');
const [urlPath, setUrlPath] = useState('');
const [liked, setLiked] = useState(false);
const { isAuthenticated, userData } = useUserDataContext();
-
const [UpdateFailure, confirmFailure] = useConfirm(
['Unable to reactivate your idea', '', ''],
@@ -26,9 +24,9 @@ function IdeaCard({ cards, cardType }) {
);
useEffect(() => {
- if (cardType == "mine") {
- if (tagContent !== "archived") {
- setButtonContent(`WORKSHOP THIS IDEA`);
+ if (cardType == 'mine') {
+ if (tagContent !== 'archived') {
+ setButtonContent(`Edit This Idea`);
} else {
setButtonContent(`REACTIVATE THIS IDEA`);
}
@@ -44,7 +42,10 @@ function IdeaCard({ cards, cardType }) {
setButtonContent(`WAIT`);
try {
- const res = await agent.Ideas.getIdea(cards.id, new URLSearchParams(`populate=*`));
+ const res = await agent.Ideas.getIdea(
+ cards.id,
+ new URLSearchParams(`populate=*`)
+ );
if (res.status === 200) {
setTagContent('workshopping');
@@ -63,24 +64,18 @@ function IdeaCard({ cards, cardType }) {
borderRadius: '1rem',
}}
>
-
-
+
-
+
-
-
-
+
+
-
+
- {isAuthenticated ?
- setLiked((prev) => !prev)}
- filled={liked}
- text={liked ? 1 : ''}
- >
-
- : null}
-
+ {isAuthenticated ? (
+
+ setLiked((prev) => !prev)}
+ filled={liked}
+ text={liked ? 1 : ''}
+ >
+
+ ) : null}
- {tagContent == "archived" ? (
+ {tagContent == 'archived' ? (
@@ -120,8 +118,8 @@ function IdeaCard({ cards, cardType }) {
) : (
{buttonContent}
diff --git a/staging/kustomization.yaml b/staging/kustomization.yaml
index 38adcd61d..45c56413d 100644
--- a/staging/kustomization.yaml
+++ b/staging/kustomization.yaml
@@ -6,4 +6,4 @@ resources:
images:
- name: devlaunchers/platform-website
newName: devlaunchers/platform-website
- newTag: "982ce6d-202406290014" # {"$imagepolicy": "platform-website-staging:platform-website:tag"}
+ newTag: "e9f45a1-202406300106" # {"$imagepolicy": "platform-website-staging:platform-website:tag"}