nicolium: why so many
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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'
|
||||
|
||||
@ -71,7 +71,7 @@ const AntennasPage: React.FC = () => {
|
||||
</Card>
|
||||
) : (
|
||||
<List>
|
||||
{antennas.map((antenna: any) => (
|
||||
{antennas.map((antenna) => (
|
||||
<ListItem
|
||||
key={antenna.id}
|
||||
to='/antennas/$antennaId'
|
||||
|
||||
@ -106,7 +106,7 @@ const ListsPage: React.FC = () => {
|
||||
</Card>
|
||||
) : (
|
||||
<List>
|
||||
{lists.map((list: any) => (
|
||||
{lists.map((list) => (
|
||||
<ListItem
|
||||
key={list.id}
|
||||
to='/list/$listId'
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user