refactor: useRequest2 -> useRequest (#6333)

This commit is contained in:
Finley Ge
2026-01-29 09:58:39 +08:00
committed by GitHub
parent cebfda4651
commit cdb896ebf9
203 changed files with 709 additions and 715 deletions
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
import { ModalFooter, ModalBody, Input, Button, Box, Textarea } from '@chakra-ui/react';
import MyModal from './index';
import { useTranslation } from 'next-i18next';
import { useRequest2 } from '../../../hooks/useRequest';
import { useRequest } from '../../../hooks/useRequest';
import FormLabel from '../MyBox/FormLabel';
import { useForm } from 'react-hook-form';
@@ -49,7 +49,7 @@ const EditFolderModal = ({
[isEdit, t]
);
const { run: onSave, loading } = useRequest2(
const { run: onSave, loading } = useRequest(
({ name = '', intro }: EditFolderFormType) => {
if (!name) return;