Arrow functions and so

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-13 01:18:04 +02:00
parent 615ec68931
commit a58c52631e
352 changed files with 2894 additions and 3693 deletions

View File

@ -15,7 +15,7 @@ interface CreateGroupParams {
tags?: string[];
}
function useCreateGroup() {
const useCreateGroup = () => {
const api = useApi();
const { createEntity, ...rest } = useCreateEntity([Entities.GROUPS, 'search', ''], (params: CreateGroupParams) => {
@ -32,6 +32,6 @@ function useCreateGroup() {
createGroup: createEntity,
...rest,
};
}
};
export { useCreateGroup, type CreateGroupParams };