refactor: simplify useConnectionSetting (#1141)

This commit is contained in:
Sukka
2024-06-07 17:23:53 +08:00
committed by GitHub
Unverified
parent 5768b01786
commit 7a1f4f9abe
4 changed files with 9 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ interface IConnectionSetting {
layout: "table" | "list";
}
export const defaultConnectionSetting: IConnectionSetting = { layout: "table" };
const defaultConnectionSetting: IConnectionSetting = { layout: "table" };
export const useConnectionSetting = () =>
useLocalStorage<IConnectionSetting>(