authelia/web/src/hooks/UserPreferences.ts
Clement Michaud 9ae2096d2a Rewrite authelia frontend to improve user experience.
This refactoring simplify the code of the frontend and prepare the
portal for receiving a user settings page and an admin page.
2019-12-05 11:05:24 +01:00

6 lines
210 B
TypeScript

import { getUserPreferences } from "../services/UserPreferences";
import { useRemoteCall } from "../hooks/RemoteCall";
export function useUserPreferences() {
return useRemoteCall(getUserPreferences, []);
}