migrate contextModal props

This commit is contained in:
jeffvli
2025-11-15 21:01:50 -08:00
parent 3adfb3711f
commit 4ba7306855
4 changed files with 4 additions and 4 deletions
@@ -258,7 +258,7 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
itemIds: items,
resourceType: itemType,
},
modal: 'addToPlaylist',
modalKey: 'addToPlaylist',
size: 'lg',
title: t('page.contextMenu.addToPlaylist', { postProcess: 'sentenceCase' }),
});
@@ -34,7 +34,7 @@ export const ShareAction = ({ ids, itemType }: ShareActionProps) => {
itemIds: ids,
resourceType,
},
modal: 'shareItem',
modalKey: 'shareItem',
title: t('page.contextMenu.shareItem', { postProcess: 'titleCase' }),
});
}, [ids, resourceType, t]);
@@ -35,7 +35,7 @@ export const ServerList = () => {
<AddServerForm onCancel={() => vars.context.closeModal(vars.id)} />
),
},
modal: 'base',
modalKey: 'base',
title: t('form.addServer.title', { postProcess: 'titleCase' }),
});
};
@@ -110,7 +110,7 @@ const PlaylistRowButton = ({ name, onPlay, to, ...props }: PlaylistRowButtonProp
openContextModal({
innerProps: modalProps,
modal: 'addToPlaylist',
modalKey: 'addToPlaylist',
size: 'lg',
title: t('form.addToPlaylist.title', { postProcess: 'titleCase' }),
});