From 5eff349ac17532fe1ad4d988fb9fd4d3709f4395 Mon Sep 17 00:00:00 2001 From: Modupe Akanni Date: Sun, 21 Jul 2024 14:50:49 +0100 Subject: [PATCH 1/3] fix pipeline --- src/components/common/blogCard/BlogCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/blogCard/BlogCard.tsx b/src/components/common/blogCard/BlogCard.tsx index fc5ca2cb8..5f2b69014 100644 --- a/src/components/common/blogCard/BlogCard.tsx +++ b/src/components/common/blogCard/BlogCard.tsx @@ -27,7 +27,7 @@ const BlogCard = (properties: blogCardProperties) => {
@@ -59,7 +59,7 @@ const BlogCard = (properties: blogCardProperties) => {

{properties.timeOfReading} mins Read

-

·

+

·

{properties.date}

From 87f3c988f4eda7b6a131f5aa5b3f7424a71971f9 Mon Sep 17 00:00:00 2001 From: Modupe Akanni Date: Tue, 30 Jul 2024 12:36:02 +0100 Subject: [PATCH 2/3] feat: add data page --- .../settings/data-and-privacy/page.tsx | 102 +++++++++++++++++- 1 file changed, 99 insertions(+), 3 deletions(-) diff --git a/src/app/dashboard/(user-dashboard)/settings/data-and-privacy/page.tsx b/src/app/dashboard/(user-dashboard)/settings/data-and-privacy/page.tsx index db4d38750..dfd73041e 100644 --- a/src/app/dashboard/(user-dashboard)/settings/data-and-privacy/page.tsx +++ b/src/app/dashboard/(user-dashboard)/settings/data-and-privacy/page.tsx @@ -1,5 +1,101 @@ -const page = () => { - return
page
; +"use client"; + +import { useState } from "react"; + +interface ToggleSwitchProperties { + label: string; + description: string; + apiEndpoint: string; +} + +const ToggleSwitch: React.FC = ({ + label, + description, +}) => { + const [enabled, setEnabled] = useState(false); + + const handleToggle = async () => { + setEnabled(!enabled); + }; + + return ( +
+
+ + +
+

{description}

+
+ ); +}; + +const Page = () => { + return ( +
+

Data & Privacy

+
+

Choose how we use your data

+

+ Your data is important for helping improve and personalize HNG + Boilerplate, and you have control over how it is used. You can change + these settings anytime if you feel like playing a part in our + development. Learn more. +

+
+ + + + + + + +
+ ); }; -export default page; +export default Page; From 4fbd6f0851478976044ec8e12d180886ad6f9632 Mon Sep 17 00:00:00 2001 From: Matthew Ameh Date: Tue, 30 Jul 2024 13:27:17 +0100 Subject: [PATCH 3/3] add side-edit-bar --- .../[templateId]/page.tsx | 2 +- .../_components/AddLogo.tsx | 2 +- .../_components/ImageBody.tsx | 2 +- .../_components/SideEditNav.tsx | 26 +++++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/SideEditNav.tsx diff --git a/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/[templateId]/page.tsx b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/[templateId]/page.tsx index 1a807af4a..ec3fe4e30 100644 --- a/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/[templateId]/page.tsx +++ b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/[templateId]/page.tsx @@ -30,7 +30,7 @@ export default function page() {
-
+
{/* YOUR EDIT TEMPLATE COMPONENTS GOES HERE ACCORRDING */} {/* CREATE A FLEX CONTAINER TO HOUSE THE TEMPLATE AREA AND THE SIDEBAR ICONS */}
diff --git a/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx index 77a457a6b..4312fb772 100644 --- a/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx +++ b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx @@ -20,7 +20,7 @@ const AddLogo: React.FC = () => { }; return ( -
+