File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed 
projects/app/src/pageComponents/chat/ChatSetting/FavouriteAppSetting Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -330,23 +330,23 @@ const FavouriteAppSetting = ({ Header }: Props) => {
330330
331331                          { /* action */ } 
332332                          < Td  p = "0"  w = "0"  textAlign = "center" > 
333-                             < PopoverConfirm 
334-                               type = "delete" 
335-                               content = { t ( 'chat:setting.favourite.delete_app_confirm' ) } 
336-                               onConfirm = { ( )   =>   { 
337-                                 setLocalFavourites ( ( prev )  =>  { 
338-                                   const   next   =   prev . filter ( ( _ ,   i )  =>  i   !==   index ) ; 
339-                                   // reset order 
340-                                   const   ordered   =   next . map ( ( item ,   idx )   =>   ( { 
341-                                     ... item , 
342-                                     order :  idx 
343-                                   } ) ) ; 
344-                                   deleteApp ( row . _id ) ; 
345-                                   return   ordered ; 
346-                                 } ) ; 
347-                               } } 
348-                               Trigger = { 
349-                                 < Box   w = "158px" > 
333+                             < Box   w = "158px" > 
334+                               < PopoverConfirm 
335+                                  type = "delete" 
336+                                  content = { t ( 'chat:setting.favourite.delete_app_confirm' ) } 
337+                                 onConfirm = { ( )  =>  { 
338+                                   setLocalFavourites ( ( prev )  =>  { 
339+                                      const   next   =   prev . filter ( ( _ ,   i )   =>   i   !==   index ) ; 
340+                                      // reset order 
341+                                     const   ordered   =   next . map ( ( item ,   idx )   =>   ( { 
342+                                       ... item , 
343+                                        order :  idx 
344+                                      } ) ) ; 
345+                                      deleteApp ( row . _id ) ; 
346+                                      return   ordered ; 
347+                                    } ) ; 
348+                                  } } 
349+                                 Trigger = { 
350350                                  < IconButton 
351351                                    size = "sm" 
352352                                    aria-label = "delete" 
@@ -356,9 +356,9 @@ const FavouriteAppSetting = ({ Header }: Props) => {
356356                                      < MyIcon  name = "common/trash"  w = "20px"  color = "myGray.400"  /> 
357357                                    } 
358358                                  /> 
359-                                 </ Box > 
360-                               } 
361-                             / >
359+                                 } 
360+                               /> 
361+                             </ Box > 
362362                          </ Td > 
363363                        </ Tr > 
364364                      ) } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments