mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat: connect pinboard and reference link (#1859)
This commit is contained in:
@@ -45,7 +45,7 @@ export const PinboardMenu = ({
|
||||
meta => !meta.trash && meta.title.includes(query)
|
||||
);
|
||||
|
||||
const { handleDrop } = usePinboardHandler({
|
||||
const { dropPin } = usePinboardHandler({
|
||||
blockSuiteWorkspace,
|
||||
metas,
|
||||
});
|
||||
@@ -54,7 +54,7 @@ export const PinboardMenu = ({
|
||||
(dropId: string) => {
|
||||
const targetTitle = metas.find(m => m.id === dropId)?.title;
|
||||
|
||||
handleDrop(currentMeta.id, dropId, {
|
||||
dropPin(currentMeta.id, dropId, {
|
||||
bottomLine: false,
|
||||
topLine: false,
|
||||
internal: true,
|
||||
@@ -62,7 +62,7 @@ export const PinboardMenu = ({
|
||||
onPinboardClick?.({ dragId: currentMeta.id, dropId });
|
||||
toast(`Moved "${currentMeta.title}" to "${targetTitle}"`);
|
||||
},
|
||||
[currentMeta.id, currentMeta.title, handleDrop, metas, onPinboardClick]
|
||||
[currentMeta.id, currentMeta.title, dropPin, metas, onPinboardClick]
|
||||
);
|
||||
|
||||
const { data } = usePinboardData({
|
||||
|
||||
Reference in New Issue
Block a user