ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
hooks/use-leaves
useLeaveActions
Function useLeaveActions
useLeaveActions
()
:
{
createLeave
:
(
leaveData
:
any
)
=>
Promise
<
any
>
;
updateLeave
:
(
id
:
string
,
leaveData
:
any
)
=>
Promise
<
any
>
;
deleteLeave
:
(
id
:
string
)
=>
Promise
<
void
>
;
toggleLeaveStatus
:
(
id
:
string
)
=>
Promise
<
any
>
;
}
Returns
{
createLeave
:
(
leaveData
:
any
)
=>
Promise
<
any
>
;
updateLeave
:
(
id
:
string
,
leaveData
:
any
)
=>
Promise
<
any
>
;
deleteLeave
:
(
id
:
string
)
=>
Promise
<
void
>
;
toggleLeaveStatus
:
(
id
:
string
)
=>
Promise
<
any
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...