1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

Change to preferred export format (#2567)

### What
This PR updates the example for the hook to use the export format that
is recommended in the ADR we've written on export types.
This commit is contained in:
Christopher Kolstad 2022-11-30 10:42:00 +01:00 committed by GitHub
parent 753d6681ff
commit a113f9c2c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ Example:
import { ITagPayload } from 'interfaces/tags';
import useAPI from '../useApi/useApi';
const useTagTypesApi = () => {
export const useTagTypesApi = () => {
const { makeRequest, createRequest, errors, loading } = useAPI({
propagateErrors: true,
});
@ -87,6 +87,4 @@ const useTagTypesApi = () => {
loading,
};
};
export default useTagTypesApi;
```