| @@ -213,8 +213,9 @@ | ||
| 213 | 213 | </div> |
| 214 | 214 | ), |
| 215 | 215 | }, |
| 216 | 216 | ], |
| 217 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 217 | 218 | [visibleColumns], |
| 218 | 219 | ); |
| 219 | 220 | |
| 220 | 221 | // Toggle column visibility |
| @@ -318,12 +319,13 @@ | ||
| 318 | 319 | } catch (error) { |
| 319 | 320 | return null; |
| 320 | 321 | } |
| 321 | 322 | }, |
| 322 | - enabled: can("manage_yatra"), | |
| 323 | + enabled: can("yatra_access_admin"), | |
| 323 | 324 | staleTime: 5 * 60 * 1000, // Cache for 5 minutes |
| 324 | 325 | }); |
| 325 | 326 | |
| 327 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 326 | 328 | const activities = data?.data || []; |
| 327 | 329 | const total = data?.total || 0; |
| 328 | 330 | const totalPages = Math.ceil(total / 10); |
| 329 | 331 | const errorContext = getErrorContext(error); |
| @@ -759,8 +761,9 @@ | ||
| 759 | 761 | /> |
| 760 | 762 | ) : ( |
| 761 | 763 | <IconSelector |
| 762 | 764 | iconName={activity.icon.value} |
| 765 | + provider={activity.icon.provider ?? "yatra"} | |
| 763 | 766 | className="w-5 h-5 text-blue-600 dark:text-blue-400" |
| 764 | 767 | /> |
| 765 | 768 | ) |
| 766 | 769 | ) : ( |