update
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import {useContext} from "react";
|
||||
import {TableSettingContext} from "../contexts/tableSetting";
|
||||
import { useContext } from "react";
|
||||
import { TableSettingContext } from "../contexts/tableSetting";
|
||||
|
||||
const useUser = () => {
|
||||
const {settingStore, hideAction, sortAction, filterAction} = useContext(TableSettingContext);
|
||||
return {settingStore, hideAction, sortAction, filterAction};
|
||||
const useTableSetting = () => {
|
||||
const { settingStore, hideAction, sortAction, filterAction } =
|
||||
useContext(TableSettingContext);
|
||||
return { settingStore, hideAction, sortAction, filterAction };
|
||||
};
|
||||
|
||||
export default useUser;
|
||||
export default useTableSetting;
|
||||
|
||||
Reference in New Issue
Block a user