diff --git a/apps/nextjs/src/app/[locale]/manage/boards/_components/create-board-button.tsx b/apps/nextjs/src/app/[locale]/manage/boards/_components/create-board-button.tsx
index cbe15468d..0aa295481 100644
--- a/apps/nextjs/src/app/[locale]/manage/boards/_components/create-board-button.tsx
+++ b/apps/nextjs/src/app/[locale]/manage/boards/_components/create-board-button.tsx
@@ -1,39 +1,21 @@
"use client";
-import { useCallback } from "react";
import { Affix, Button, Group, Menu } from "@mantine/core";
import { IconCategoryPlus, IconChevronDown, IconFileImport } from "@tabler/icons-react";
-import { revalidatePathActionAsync } from "@homarr/common/client";
import { useModalAction } from "@homarr/modals";
import { AddBoardModal, ImportBoardModal } from "@homarr/modals-collection";
import { useI18n } from "@homarr/translation/client";
import { BetaBadge } from "@homarr/ui";
-interface CreateBoardButtonProps {
- boardNames: string[];
-}
-
-export const CreateBoardButton = ({ boardNames }: CreateBoardButtonProps) => {
+export const CreateBoardButton = () => {
const t = useI18n();
const { openModal: openAddModal } = useModalAction(AddBoardModal);
const { openModal: openImportModal } = useModalAction(ImportBoardModal);
- const onCreateClick = useCallback(() => {
- openAddModal({
- onSettled: async () => {
- await revalidatePathActionAsync("/manage/boards");
- },
- });
- }, [openAddModal]);
-
- const onImportClick = useCallback(() => {
- openImportModal({ boardNames });
- }, [openImportModal, boardNames]);
-
const buttonGroupContent = (
<>
- } onClick={onCreateClick}>
+ } onClick={openAddModal}>
{t("management.page.board.action.new.label")}