♻️(frontend) support mutation status in QueryAware component

useMutation has one more possible status, 'idle'. I was forced
to add it to avoid any Typescript error.
This commit is contained in:
lebaudantoine
2024-08-04 17:35:36 +02:00
committed by aleb_the_flash
parent 55749a9565
commit 23a2d3bcac

View File

@@ -13,7 +13,7 @@ export const QueryAware = ({
status,
children,
}: {
status: 'error' | 'pending' | 'success'
status: 'error' | 'idle' | 'pending' | 'success'
children: React.ReactNode
}) => {
if (status === 'error') {