Re: [Sts-sponsors] [Merge] ~jonesogolo/maas-site-manager:1548-enrolment-tokens-export-action into maas-site-manager:main

2023-05-12 Thread Peter Makowski
A quick note on `useTokensExportQuery` - I'm not sure react query will be the right solution for handling file downloads. In case you're having issues with it, might make sense to use axios directly. --

Re: [Sts-sponsors] [Merge] ~jonesogolo/maas-site-manager:1548-enrolment-tokens-export-action into maas-site-manager:main

2023-05-12 Thread Peter Makowski
I'd suggest adding a static csv file to src/mocks instead of trying to generate it manually. In the mock service worker you'll most likely want to use binary response type https://mswjs.io/docs/recipes/binary-response-type You'd also need to add header for the response to be handled correctly