refactor: restructure useAppShell context into nested objects
This commit is contained in:
@@ -11,10 +11,10 @@ interface SettingsRouteProps {
|
||||
}
|
||||
|
||||
const SettingsRoute: React.FC<SettingsRouteProps> = ({ open = true, onClose }) => {
|
||||
const shell = useAppShell() as any;
|
||||
const { token } = shell.session || {};
|
||||
const { notifyApiError, setStatusMessage } = shell.ui || {};
|
||||
const {
|
||||
token,
|
||||
notifyApiError,
|
||||
setStatusMessage,
|
||||
passkeys,
|
||||
passkeysSupported,
|
||||
passkeysLoading,
|
||||
@@ -23,7 +23,7 @@ const SettingsRoute: React.FC<SettingsRouteProps> = ({ open = true, onClose }) =
|
||||
refreshPasskeys,
|
||||
registerPasskey,
|
||||
revokePasskey,
|
||||
} = useAppShell() as Record<string, any>;
|
||||
} = shell.passkeys || {};
|
||||
|
||||
const {
|
||||
tokens,
|
||||
|
||||
Reference in New Issue
Block a user