Change to using arrow functions (#1603)
* Change to using arrow functions Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> * Add lint rule --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -3,7 +3,7 @@ import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import { DialogOptions, dialogSetQueueState } from '../states/dialogState';
|
||||
|
||||
export function useDialog() {
|
||||
export const useDialog = () => {
|
||||
const setDialogQueue = useSetRecoilState(dialogSetQueueState);
|
||||
|
||||
const enqueueDialog = (options?: Omit<DialogOptions, 'id'>) => {
|
||||
@ -14,4 +14,4 @@ export function useDialog() {
|
||||
};
|
||||
|
||||
return { enqueueDialog };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user