feat: editor enhancement for order list (#763)

This commit is contained in:
Zeng1998
2022-12-18 11:02:42 +08:00
committed by GitHub
parent 1eec474007
commit a41745c9ae
3 changed files with 52 additions and 23 deletions

View File

@ -1,15 +0,0 @@
import { useCallback, useState } from "react";
const useRefresh = () => {
const [, setBoolean] = useState<boolean>(false);
const refresh = useCallback(() => {
setBoolean((ps) => {
return !ps;
});
}, []);
return refresh;
};
export default useRefresh;