diff --git a/lib/features/profile/presentation/pages/profile_page.dart b/lib/features/profile/presentation/pages/profile_page.dart index ad1ac32..1a71105 100644 --- a/lib/features/profile/presentation/pages/profile_page.dart +++ b/lib/features/profile/presentation/pages/profile_page.dart @@ -12,6 +12,7 @@ import '../../../authentication/presentation/bloc/auth_bloc.dart'; import '../../../settings/presentation/pages/language_settings_page.dart'; import '../../../settings/presentation/pages/privacy_settings_page.dart'; import '../../../settings/presentation/pages/feedback_page.dart'; +import '../widgets/kyc_status_widget.dart'; import '../bloc/profile_bloc.dart'; /// Page Mon Profil - UnionFlow Mobile @@ -657,14 +658,26 @@ class _ProfilePageState extends State /// Onglet sécurité Widget _buildSecurityTab() { - return SingleChildScrollView( - padding: const EdgeInsets.all(12), - child: Column( - children: [ - const SizedBox(height: 16), + return BlocBuilder( + builder: (context, state) { + return SingleChildScrollView( + padding: const EdgeInsets.all(12), + child: Column( + children: [ + const SizedBox(height: 16), - // Authentification - _buildSecuritySection( + // KYC/LCB-FT Status (si membre chargé) + if (state is ProfileLoaded) ...[ + KycStatusWidget( + niveauVigilance: state.membre.niveauVigilanceKyc, + statutKyc: state.membre.statutKyc, + dateVerification: state.membre.dateVerificationIdentite, + ), + const SizedBox(height: 16), + ], + + // Authentification + _buildSecuritySection( 'Authentification', 'Sécuriser votre compte', Icons.security, @@ -753,11 +766,13 @@ class _ProfilePageState extends State () => _showDeleteAccountDialog(), ), ], - ), + ), - const SizedBox(height: 80), - ], - ), + const SizedBox(height: 80), + ], + ), + ); + }, ); }