From 0512cdd3a1ff2116babf105567ecc5039fd12ee3 Mon Sep 17 00:00:00 2001 From: snehalsankhe Date: Fri, 23 Aug 2024 16:51:24 +0530 Subject: [PATCH] solved bugs --- ui/src/cmsData/add_stack.json | 2 +- ui/src/components/Card/card.scss | 6 +++++- ui/src/pages/Projects/index.tsx | 16 +++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ui/src/cmsData/add_stack.json b/ui/src/cmsData/add_stack.json index 77daf4fc5..8b83cf3fb 100644 --- a/ui/src/cmsData/add_stack.json +++ b/ui/src/cmsData/add_stack.json @@ -12,7 +12,7 @@ "stack_locale_description": "Select a language", "stack_locales": "Set Master Language", "stack_name": "Name", - "stack_name_placeholder": "Enter stack Name", + "stack_name_placeholder": "Enter stack name", "tags": [], "title": "Create New Stack", "updated_at": "2024-02-13T04:44:57.846Z", diff --git a/ui/src/components/Card/card.scss b/ui/src/components/Card/card.scss index 019a9875f..b2edbef31 100644 --- a/ui/src/components/Card/card.scss +++ b/ui/src/components/Card/card.scss @@ -9,6 +9,10 @@ border: 1px solid $color-brand-secondary-lightest; transition: box-shadow 0.3s ease; width: 20rem; + &:hover { + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .12), 0 0 2px 0 rgba(0, 0, 0, .14); + cursor: pointer; + } } /** @@ -41,6 +45,7 @@ padding: 0; white-space: normal; -webkit-line-clamp: 2; + line-clamp: 2; -webkit-box-orient: vertical; } @@ -63,7 +68,6 @@ * Styles for the content of the ProjectCard component. */ .ProjectCard__content { - // margin: 0 1rem 2rem; padding: 0; text-align: center; } diff --git a/ui/src/pages/Projects/index.tsx b/ui/src/pages/Projects/index.tsx index a1b2d3088..8e2896964 100644 --- a/ui/src/pages/Projects/index.tsx +++ b/ui/src/pages/Projects/index.tsx @@ -80,15 +80,17 @@ const Projects = () => { const fetchData = async () => { //check if offline CMS data field is set to true, if then read data from cms data file. getCMSDataFromFile(CS_ENTRIES.PROJECTS) - .then((data) => setData(data)) - .catch((err) => { - console.error(err); - setData({}); - }); - - // fetchProjects(); + .then((data) => setData(data)) + .catch((err) => { + console.error(err); + setData({}); + }); }; + useEffect(()=>{ + dispatch(getUserDetails()); + },[dispatch]); + useEffect(() => { fetchData(); }, []);