chore: remove useListStyle hook (#1434)

This commit is contained in:
boojack
2023-04-01 16:38:39 +08:00
committed by GitHub
parent 89ab57d738
commit fab3dac70a
4 changed files with 19 additions and 51 deletions

View File

@ -1,5 +1,4 @@
export * from "./useDebounce";
export * from "./useListStyle";
export * from "./useLoading";
export * from "./useTimeoutFn";
export * from "./useToggle";

View File

@ -1,17 +0,0 @@
import { useState } from "react";
const useListStyle = () => {
// true is Table Style, false is Grid Style
const [listStyle, setListStyle] = useState(false);
return {
listStyle: listStyle,
setToTableStyle: () => {
setListStyle(true);
},
setToGridStyle: () => {
setListStyle(false);
},
};
};
export default useListStyle;