mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
migrate contextModal props
This commit is contained in:
@@ -258,7 +258,7 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
|
|||||||
itemIds: items,
|
itemIds: items,
|
||||||
resourceType: itemType,
|
resourceType: itemType,
|
||||||
},
|
},
|
||||||
modal: 'addToPlaylist',
|
modalKey: 'addToPlaylist',
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
title: t('page.contextMenu.addToPlaylist', { postProcess: 'sentenceCase' }),
|
title: t('page.contextMenu.addToPlaylist', { postProcess: 'sentenceCase' }),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export const ShareAction = ({ ids, itemType }: ShareActionProps) => {
|
|||||||
itemIds: ids,
|
itemIds: ids,
|
||||||
resourceType,
|
resourceType,
|
||||||
},
|
},
|
||||||
modal: 'shareItem',
|
modalKey: 'shareItem',
|
||||||
title: t('page.contextMenu.shareItem', { postProcess: 'titleCase' }),
|
title: t('page.contextMenu.shareItem', { postProcess: 'titleCase' }),
|
||||||
});
|
});
|
||||||
}, [ids, resourceType, t]);
|
}, [ids, resourceType, t]);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export const ServerList = () => {
|
|||||||
<AddServerForm onCancel={() => vars.context.closeModal(vars.id)} />
|
<AddServerForm onCancel={() => vars.context.closeModal(vars.id)} />
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
modal: 'base',
|
modalKey: 'base',
|
||||||
title: t('form.addServer.title', { postProcess: 'titleCase' }),
|
title: t('form.addServer.title', { postProcess: 'titleCase' }),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const PlaylistRowButton = ({ name, onPlay, to, ...props }: PlaylistRowButtonProp
|
|||||||
|
|
||||||
openContextModal({
|
openContextModal({
|
||||||
innerProps: modalProps,
|
innerProps: modalProps,
|
||||||
modal: 'addToPlaylist',
|
modalKey: 'addToPlaylist',
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
title: t('form.addToPlaylist.title', { postProcess: 'titleCase' }),
|
title: t('form.addToPlaylist.title', { postProcess: 'titleCase' }),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user