diff --git a/apps/nextjs/src/components/board/selection/board-selection-context.tsx b/apps/nextjs/src/components/board/selection/board-selection-context.tsx index ab5aaa29e..fb6f3ec6a 100644 --- a/apps/nextjs/src/components/board/selection/board-selection-context.tsx +++ b/apps/nextjs/src/components/board/selection/board-selection-context.tsx @@ -106,22 +106,22 @@ export const BoardSelectionProvider = ({ children }: PropsWithChildren) => { const value = serializeBoardItemsForClipboard(selectedItems, currentLayoutId); await navigator.clipboard.writeText(value); showSuccessNotification({ - title: t("common.success"), + title: tCommon("success"), message: tSelection("copied", { count: selectedItems.length }), }); } catch { showErrorNotification({ - title: t("common.error"), + title: tCommon("error"), message: tSelection("copyError"), }); } - }, [board.items, currentLayoutId, selectedItemIds, t, tSelection]); + }, [board.items, currentLayoutId, selectedItemIds, tCommon, tSelection]); const pasteItemsFromText = useCallback( (value: string) => { const payload = parseBoardItemClipboard(value); if (!payload) { - showErrorNotification({ title: t("common.error"), message: tSelection("pasteInvalid") }); + showErrorNotification({ title: tCommon("error"), message: tSelection("pasteInvalid") }); return; } @@ -144,27 +144,27 @@ export const BoardSelectionProvider = ({ children }: PropsWithChildren) => { }); if (!didPasteAll) { - showErrorNotification({ title: t("common.error"), message: tSelection("pasteUnavailable") }); + showErrorNotification({ title: tCommon("error"), message: tSelection("pasteUnavailable") }); return; } setSelectedItemIds(new Set(pastedIds)); playPopSound(); showSuccessNotification({ - title: t("common.success"), + title: tCommon("success"), message: tSelection("pasted", { count: pastedIds.length }), }); }, - [persistBoard, t, tSelection], + [persistBoard, tCommon, tSelection], ); const pasteItems = useCallback(async () => { try { pasteItemsFromText(await navigator.clipboard.readText()); } catch { - showErrorNotification({ title: t("common.error"), message: tSelection("pasteError") }); + showErrorNotification({ title: tCommon("error"), message: tSelection("pasteError") }); } - }, [pasteItemsFromText, t, tSelection]); + }, [pasteItemsFromText, tCommon, tSelection]); useEffect(() => { if (!isEditMode) return; diff --git a/packages/modals-collection/src/apps/app-select-modal.tsx b/packages/modals-collection/src/apps/app-select-modal.tsx index 3ae968dba..c31c43a4b 100644 --- a/packages/modals-collection/src/apps/app-select-modal.tsx +++ b/packages/modals-collection/src/apps/app-select-modal.tsx @@ -1,6 +1,5 @@ import { useMemo, useState } from "react"; import { - Badge, Button, Center, Group,