mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
16
src/hooks/query/misc.js
Normal file
16
src/hooks/query/misc.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { useRequestQuery } from '../useQueryRequest';
|
||||
|
||||
/**
|
||||
* Retrieve the job metadata.
|
||||
*/
|
||||
export function useDateFormats(props = {}) {
|
||||
return useRequestQuery(
|
||||
['DATE_FORMATS'],
|
||||
{ method: 'get', url: `/date_formats` },
|
||||
{
|
||||
select: (res) => res.data.data,
|
||||
defaultData: [],
|
||||
...props,
|
||||
},
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user