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:
parent
753d6681ff
commit
a113f9c2c0
@ -17,7 +17,7 @@ Example:
|
|||||||
import { ITagPayload } from 'interfaces/tags';
|
import { ITagPayload } from 'interfaces/tags';
|
||||||
import useAPI from '../useApi/useApi';
|
import useAPI from '../useApi/useApi';
|
||||||
|
|
||||||
const useTagTypesApi = () => {
|
export const useTagTypesApi = () => {
|
||||||
const { makeRequest, createRequest, errors, loading } = useAPI({
|
const { makeRequest, createRequest, errors, loading } = useAPI({
|
||||||
propagateErrors: true,
|
propagateErrors: true,
|
||||||
});
|
});
|
||||||
@ -87,6 +87,4 @@ const useTagTypesApi = () => {
|
|||||||
loading,
|
loading,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default useTagTypesApi;
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user