kan.bn
diff --git a/src/pages/boards/[...boardId]/index.tsx b/src/pages/boards/[...boardId]/index.tsx
index 8bb46d5e..e1b99e15 100644
--- a/src/pages/boards/[...boardId]/index.tsx
+++ b/src/pages/boards/[...boardId]/index.tsx
@@ -1,5 +1,5 @@
import { WorkspaceProvider } from "~/providers/workspace";
-import Dashboard from "~/components/dashboard";
+import Dashboard from "~/components/Dashboard";
import Popup from "~/components/Popup";
import BoardView from "~/views/board";
diff --git a/src/pages/boards/index.tsx b/src/pages/boards/index.tsx
index 61333c93..ff1c9415 100644
--- a/src/pages/boards/index.tsx
+++ b/src/pages/boards/index.tsx
@@ -1,5 +1,5 @@
import { WorkspaceProvider } from "~/providers/workspace";
-import Dashboard from "~/components/dashboard";
+import Dashboard from "~/components/Dashboard";
import Popup from "~/components/Popup";
import BoardsView from "~/views/boards";
diff --git a/src/pages/cards/[cardId]/index.tsx b/src/pages/cards/[cardId]/index.tsx
index 240d3158..db9f05d0 100644
--- a/src/pages/cards/[cardId]/index.tsx
+++ b/src/pages/cards/[cardId]/index.tsx
@@ -1,5 +1,5 @@
import { WorkspaceProvider } from "~/providers/workspace";
-import Dashboard from "~/components/dashboard";
+import Dashboard from "~/components/Dashboard";
import Popup from "~/components/Popup";
import CardView from "~/views/card";
diff --git a/src/pages/members/index.tsx b/src/pages/members/index.tsx
index 1961750d..7a949a8e 100644
--- a/src/pages/members/index.tsx
+++ b/src/pages/members/index.tsx
@@ -1,5 +1,5 @@
import { WorkspaceProvider } from "~/providers/workspace";
-import Dashboard from "~/components/dashboard";
+import Dashboard from "~/components/Dashboard";
import Popup from "~/components/Popup";
import MembersView from "~/views/members";
diff --git a/src/pages/settings/index.tsx b/src/pages/settings/index.tsx
index a9428bbb..d6cb3c41 100644
--- a/src/pages/settings/index.tsx
+++ b/src/pages/settings/index.tsx
@@ -1,5 +1,5 @@
import { WorkspaceProvider } from "~/providers/workspace";
-import Dashboard from "~/components/dashboard";
+import Dashboard from "~/components/Dashboard";
import SettingsView from "~/views/settings";
import Popup from "~/components/Popup";
diff --git a/src/views/board/components/List.tsx b/src/views/board/components/List.tsx
index b9c53075..0ab53afb 100644
--- a/src/views/board/components/List.tsx
+++ b/src/views/board/components/List.tsx
@@ -1,12 +1,17 @@
import { type ReactNode } from "react";
-import { HiOutlinePlusSmall } from "react-icons/hi2";
+import {
+ HiOutlinePlusSmall,
+ HiEllipsisHorizontal,
+ HiOutlineTrash,
+ HiOutlineSquaresPlus,
+} from "react-icons/hi2";
import { Draggable } from "react-beautiful-dnd";
import { useForm } from "react-hook-form";
import { api } from "~/utils/api";
import { useModal } from "~/providers/modal";
-import ListDropdown from "./ListDropdown";
+import Dropdown from "~/components/Dropdown";
interface ListProps {
children: ReactNode;
@@ -60,6 +65,11 @@ export default function List({
});
};
+ const handleOpenDeleteListConfirmation = () => {
+ setSelectedPublicListId(list.publicId);
+ openModal("DELETE_LIST");
+ };
+
return (
{(provided) => (
@@ -85,7 +95,7 @@ export default function List({
-
- setSelectedPublicListId(list.publicId)
- }
- />
+
+ openNewCardForm(list.publicId),
+ icon: (
+
+ ),
+ },
+ {
+ label: "Delete list",
+ action: handleOpenDeleteListConfirmation,
+ icon: (
+
+ ),
+ },
+ ]}
+ >
+
+
+
{children}
diff --git a/src/views/board/components/ListDropdown.tsx b/src/views/board/components/ListDropdown.tsx
deleted file mode 100644
index 8114fd7c..00000000
--- a/src/views/board/components/ListDropdown.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Fragment } from "react";
-import { Menu, Transition } from "@headlessui/react";
-import { HiEllipsisHorizontal } from "react-icons/hi2";
-import { useModal } from "~/providers/modal";
-
-interface ListDropdownProps {
- setSelectedPublicListId: () => void;
-}
-
-export default function ListDropdown({
- setSelectedPublicListId,
-}: ListDropdownProps) {
- const { openModal } = useModal();
-
- const handleOpenDeleteListConfirmation = () => {
- setSelectedPublicListId();
- openModal("DELETE_LIST");
- };
-
- return (
-
- );
-}
diff --git a/src/views/board/index.tsx b/src/views/board/index.tsx
index 791ab63f..4cf7ef77 100644
--- a/src/views/board/index.tsx
+++ b/src/views/board/index.tsx
@@ -16,7 +16,6 @@ import { formatToArray } from "~/utils/helpers";
import { useBoard } from "~/providers/board";
import { useModal } from "~/providers/modal";
import { useWorkspace } from "~/providers/workspace";
-
import { PageHead } from "~/components/PageHead";
import Modal from "~/components/modal";
import PatternedBackground from "~/components/PatternedBackground";
@@ -147,7 +146,7 @@ export default function BoardPage() {