fix: reuse onboarding components on server manager page

This commit is contained in:
Dr.Blank 2025-04-23 12:18:52 +05:30
parent a05f095892
commit 5c74abc201
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B
9 changed files with 401 additions and 455 deletions

View file

@ -20,12 +20,14 @@ class UserLoginWithOpenID extends HookConsumerWidget {
required this.server,
required this.addServer,
this.openIDButtonText,
this.onSuccess,
});
final Uri server;
final model.AudiobookShelfServer Function() addServer;
final String? openIDButtonText;
final responseErrorHandler = ErrorResponseHandler(name: 'OpenID');
final Function(model.AuthenticatedUser)? onSuccess;
@override
Widget build(BuildContext context, WidgetRef ref) {