mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
chore: disable rules in oxlint (#9154)
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
CarouselItem,
|
||||
} from '@affine/admin/components/ui/carousel';
|
||||
import { validateEmailAndPassword } from '@affine/admin/utils';
|
||||
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { toast } from 'sonner';
|
||||
@@ -120,7 +121,7 @@ export const Form = () => {
|
||||
}
|
||||
}, [emailValue, passwordValue, refreshServerConfig]);
|
||||
|
||||
const onNext = useCallback(async () => {
|
||||
const onNext = useAsyncCallback(async () => {
|
||||
if (isCreateAdminStep) {
|
||||
if (
|
||||
!validateEmailAndPassword(
|
||||
|
||||
Reference in New Issue
Block a user