From 7bdcad1385e4e76e542ee6e93f64f0ee14ba83f4 Mon Sep 17 00:00:00 2001 From: mohammedsaid18 Date: Mon, 13 Oct 2025 12:24:02 +0300 Subject: [PATCH] Update somefiles in the desgin --- src/components/CampaignTracker.tsx | 2 +- src/components/DashboardGrid.tsx | 6 +++--- src/components/IntegratedStrategy.tsx | 6 +++--- src/pages/Settings.tsx | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/CampaignTracker.tsx b/src/components/CampaignTracker.tsx index 8514132..9dc4546 100644 --- a/src/components/CampaignTracker.tsx +++ b/src/components/CampaignTracker.tsx @@ -104,7 +104,7 @@ const CampaignTracker = ({ handleMenuClick }: { handleMenuClick: () => void }) = {/* Section Title and Progress */}

- {section.title}: {section.current}/{section.total} + {section.title}: {section.current} /{section.total}

{section.icons.map((icon, iconIndex) => ( diff --git a/src/components/DashboardGrid.tsx b/src/components/DashboardGrid.tsx index 82c5295..2fafeeb 100644 --- a/src/components/DashboardGrid.tsx +++ b/src/components/DashboardGrid.tsx @@ -451,7 +451,7 @@ export default function DashboardGrid() { }; - const CardHeader = ({ title, value, valueChange, icon, tooltipText }: { title: string, value: string, valueChange?: string, icon: string, tooltipText?: string }) => { + const CardHeader = ({ title, value, valueChange, icon, tooltipText, extra }: { title: string, value: string, valueChange?: string, icon: string, tooltipText?: string, extra?: string }) => { return (
{value} - + {extra && {extra}} {tooltipText &&
{ @@ -509,7 +509,7 @@ export default function DashboardGrid() {
- +
diff --git a/src/components/IntegratedStrategy.tsx b/src/components/IntegratedStrategy.tsx index 9a59c28..1158fcb 100644 --- a/src/components/IntegratedStrategy.tsx +++ b/src/components/IntegratedStrategy.tsx @@ -362,8 +362,8 @@ const IntegratedStrategy = () => {
{columns.map((column, index) => ( -
-
+
+

{column.title}

@@ -374,7 +374,7 @@ const IntegratedStrategy = () => { {column.date && {column.date}}
-
+
{column.categories.map((category, categoryIndex) => ( ))} diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 6081b89..67a349f 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -118,10 +118,10 @@ const Settings = () => { // Initialize form data when profile loads useEffect(() => { if (profileData?.user_profiles) { - const userProfile = profileData.user_profiles[0]; + const userProfile = profileData?.user_profiles[0]; setFormData({ - displayName: userProfile.display_name || '', - email: userProfile.email || '' + displayName: userProfile?.display_name || '', + email: userProfile?.email || '' }); } }, [profileData]); @@ -333,7 +333,7 @@ const Settings = () => {
{/* Main Content */} -
+
{activeSection === "profile" && (

Basic Information