From 01d66fcf9e5137576c3c76d1c2f60b3c5a662d4d Mon Sep 17 00:00:00 2001
From: Goodnews Sandy <54219127+sandygudie@users.noreply.github.com>
Date: Sun, 24 Dec 2023 09:06:56 +0100
Subject: [PATCH 1/3] updated project empty state
---
src/components/Board/ActiveBoard.tsx | 15 ++++-----------
src/components/Board/AddTask.tsx | 2 +-
src/components/Board/index.tsx | 11 ++++++++---
src/components/Header.tsx | 4 ++--
src/components/Popup.tsx | 8 ++++----
src/utilis/index.ts | 4 ++--
6 files changed, 21 insertions(+), 23 deletions(-)
diff --git a/src/components/Board/ActiveBoard.tsx b/src/components/Board/ActiveBoard.tsx
index 5967f0f..57b25fe 100644
--- a/src/components/Board/ActiveBoard.tsx
+++ b/src/components/Board/ActiveBoard.tsx
@@ -19,10 +19,8 @@ import { FcCheckmark } from "react-icons/fc";
import IconButton from "components/IconButton";
import { IoCloseOutline } from "react-icons/io5";
-interface Props {
- showSidebar: boolean;
-}
-export default function ActiveBoard({ showSidebar }: Props) {
+
+export default function ActiveBoard() {
const dispatch = useDispatch();
const [isAddTask, setAddTask] = useState(false);
const [isOpenPopup, setOpenPopup] = useState(false);
@@ -86,12 +84,7 @@ export default function ActiveBoard({ showSidebar }: Props) {
<>
-
+
{active.columns?.map((item: IColumn, index: number) => {
return (
@@ -243,7 +236,7 @@ export default function ActiveBoard({ showSidebar }: Props) {
-
+
-
+
- <>
+
{active ? (
-
+
) : (
@@ -55,7 +60,7 @@ export default function Index({ showSidebar }: Props) {
)}
- >
+
setOpenBoard(false)}>
setOpenBoard(false)} />
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index ec27924..127afe0 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -63,10 +63,10 @@ export default function Header() {
{isWorkspaceMenu && (
+
diff --git a/src/components/Popup.tsx b/src/components/Popup.tsx
index d832360..0c10592 100644
--- a/src/components/Popup.tsx
+++ b/src/components/Popup.tsx
@@ -32,7 +32,7 @@ function Popup({ items, style, handleOpenMenu, description }: Props) {
} absolute rounded-md shadow-3xl dark:shadow-gray/20 shadow-gray/30
dark:bg-[#20212c] bg-offwhite text-white w-fit right-0 top-6 `}
>
-
+
{description ? description : null}
{items.map((list, i) => {
@@ -40,9 +40,9 @@ function Popup({ items, style, handleOpenMenu, description }: Props) {