Get rid of some casts

This commit is contained in:
schroda
2024-07-11 17:55:00 +02:00
parent bc01a945db
commit 2f60b94a64
5 changed files with 5 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ export const BrowseSettings = () => {
updateSetting('extensionRepos', repos);
requestManager.clearExtensionCache();
}}
valueInfos={serverSettings.extensionRepos.map((extensionRepo) => [extensionRepo]) as [string][]}
valueInfos={serverSettings.extensionRepos.map((extensionRepo) => [extensionRepo])}
addItemButtonTitle={t('extension.settings.repositories.custom.dialog.action.button.add')}
placeholder="https://github.com/MY_ACCOUNT/MY_REPO/tree/repo"
validateItem={(repo) =>

View File

@@ -165,7 +165,7 @@ export function Categories() {
<Draggable key={item.id} draggableId={item.id.toString()} index={index}>
{(draggableProvided, snapshot) => (
<ListItem
ContainerProps={{ ref: draggableProvided.innerRef } as any}
ref={draggableProvided.innerRef}
{...draggableProvided.draggableProps}
{...draggableProvided.dragHandleProps}
style={getItemStyle(
@@ -173,7 +173,6 @@ export function Categories() {
draggableProvided.draggableProps.style,
theme.palette,
)}
ref={draggableProvided.innerRef}
>
<ListItemIcon>
<DragHandleIcon />