nicolium: why so many

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-27 02:07:07 +01:00
parent 2f6bea7ad8
commit a6fe41b661
6 changed files with 7 additions and 11 deletions

View File

@ -68,7 +68,7 @@ const CompareHistoryModal: React.FC<BaseModalProps & CompareHistoryModalProps> =
{poll && (
<div className='poll'>
<Stack>
{poll.options.map((option: any) => (
{poll.options.map((option) => (
<HStack
alignItems='center'
className='p-1 text-gray-900 dark:text-gray-300'

View File

@ -71,7 +71,7 @@ const AntennasPage: React.FC = () => {
</Card>
) : (
<List>
{antennas.map((antenna: any) => (
{antennas.map((antenna) => (
<ListItem
key={antenna.id}
to='/antennas/$antennaId'

View File

@ -106,7 +106,7 @@ const ListsPage: React.FC = () => {
</Card>
) : (
<List>
{lists.map((list: any) => (
{lists.map((list) => (
<ListItem
key={list.id}
to='/list/$listId'

View File

@ -165,7 +165,7 @@ const FrontendConfigEditor: React.FC = () => {
if (file) {
dispatch(uploadMedia({ file }))
.then((data: any) => {
.then((data) => {
handleChange(path, () => data.url)(e);
})
.catch(console.error);

View File

@ -161,7 +161,7 @@ const useMarkChatAsRead = (chatId: string) => {
const queryData = queryClient.getQueryData(queryKeys.chats.search);
if (queryData) {
const flattenedQueryData: any = flattenPages(queryData)?.map((chat: any) => {
const flattenedQueryData: any = flattenPages(queryData)?.map((chat) => {
if (chat.id === data.id) {
return data;
}
@ -245,7 +245,7 @@ const useCreateChatMessage = () => {
);
}
},
onSuccess: (response: any, variables, context) => {
onSuccess: (response, variables, context) => {
const nextChat = { ...chat, last_message: response };
updatePageItem(queryKeys.chats.search, nextChat, (o, n) => o.id === n.id);
updatePageItem(

View File

@ -47,11 +47,7 @@ const useDismissSuggestion = () => {
return useMutation({
mutationFn: (accountId: string) => client.myAccount.dismissSuggestions(accountId),
onMutate(accountId: string) {
removePageItem(
queryKeys.suggestions.all,
accountId,
(item: any, newItem: any) => item.account_id === newItem,
);
removePageItem(queryKeys.suggestions.all, accountId, (item, newItem) => item === newItem);
},
});
};