mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: remove useListStyle
hook (#1434)
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
export * from "./useDebounce";
|
||||
export * from "./useListStyle";
|
||||
export * from "./useLoading";
|
||||
export * from "./useTimeoutFn";
|
||||
export * from "./useToggle";
|
||||
|
@ -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;
|
Reference in New Issue
Block a user