diff --git a/frontend/techpick/package.json b/frontend/techpick/package.json index 8bbf250fd..051adc9d2 100644 --- a/frontend/techpick/package.json +++ b/frontend/techpick/package.json @@ -35,7 +35,6 @@ "es-toolkit": "^1.26.1", "immer": "^10.1.1", "ky": "^1.7.2", - "lodash": "^4.17.21", "lucide-react": "^0.447.0", "next": "14.2.9", "randomcolor": "^0.6.2", @@ -48,6 +47,7 @@ "react-dom": "^18", "react-hot-toast": "^2.4.1", "react-spinners": "^0.14.1", + "react-textarea-autosize": "^8.5.5", "react-virtualized-auto-sizer": "^1.0.24", "react-window": "^1.8.10", "react-window-infinite-loader": "^1.0.9", @@ -74,7 +74,6 @@ "@testing-library/jest-dom": "^6.5.0", "@testing-library/react": "^16.0.1", "@types/dompurify": "^3", - "@types/lodash": "^4", "@types/node": "^22.5.4", "@types/randomcolor": "^0.5.9", "@types/react": "^18", diff --git a/frontend/techpick/src/components/PickListViewer/PickDndListItem.tsx b/frontend/techpick/src/components/PickListViewer/PickDndListItem.tsx index 63b796fa0..c5221cd60 100644 --- a/frontend/techpick/src/components/PickListViewer/PickDndListItem.tsx +++ b/frontend/techpick/src/components/PickListViewer/PickDndListItem.tsx @@ -22,7 +22,7 @@ export function PickDndListItem({ pickInfo }: PickViewDnDItemComponentProps) { setSelectedPickIdList, isDragging, } = usePickStore(); - const { setCurrentPickIdToNull } = useUpdatePickStore(); + const { setCurrentUpdateTitlePickIdToNull } = useUpdatePickStore(); const { id: pickId, parentFolderId } = pickInfo; const isSelected = selectedPickIdList.includes(pickId); const { @@ -75,7 +75,7 @@ export function PickDndListItem({ pickInfo }: PickViewDnDItemComponentProps) { return; } - setCurrentPickIdToNull(); + setCurrentUpdateTitlePickIdToNull(); selectSinglePick(pickId); }; diff --git a/frontend/techpick/src/components/PickListViewer/PickListItem.tsx b/frontend/techpick/src/components/PickListViewer/PickListItem.tsx index e0715be9f..5bf487267 100644 --- a/frontend/techpick/src/components/PickListViewer/PickListItem.tsx +++ b/frontend/techpick/src/components/PickListViewer/PickListItem.tsx @@ -26,11 +26,11 @@ export function PickListItem({ pickInfo }: PickViewItemComponentProps) { const { updatePickInfo } = usePickStore(); const { openUrlInNewTab } = useOpenUrlInNewTab(link.url); const { - currentUpdatePickId, - setCurrentPickIdToNull, - setCurrentUpdatePickId, + currentUpdateTitlePickId, + setCurrentUpdateTitlePickIdToNull, + setCurrentUpdateTitlePickId, } = useUpdatePickStore(); - const isUpdateTitle = currentUpdatePickId === pickInfo.id; + const isUpdateTitle = currentUpdateTitlePickId === pickInfo.id; return (