Skip to content

Commit

Permalink
Dao name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Guijarro committed Sep 25, 2023
1 parent 872e2d9 commit 30ef7ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
15 changes: 8 additions & 7 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class HyphaAppView extends StatelessWidget {
_showSignTransactionBottomSheet(data);
},
showJoinDaoRationale: (daoName, secret) {
_showJoinDaoRationale(daoName, secret);
_showJoinDaoRationale(daoName, secret, context);
},
);
context.read<DeeplinkBloc>().add(const DeeplinkEvent.clearPageCommand());
Expand Down Expand Up @@ -226,16 +226,17 @@ class HyphaAppView extends StatelessWidget {
);
}

void _showJoinDaoRationale(String daoName, String secret) {
Get.Get.bottomSheet(
FractionallySizedBox(
heightFactor: UIConstants.bottomSheetHeightFraction,
child: JoinDaoRationaleBottomSheet(daoName: daoName, secret: secret),
),
void _showJoinDaoRationale(String daoName, String secret, BuildContext context) {
showModalBottomSheet(
useSafeArea: true,
isScrollControlled: true,
builder: (context) {
return JoinDaoRationaleBottomSheet(daoName: daoName, secret: secret);
},
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(30)),
),
context: context,
);
}
}
14 changes: 1 addition & 13 deletions lib/ui/settings/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:hypha_wallet/design/hypha_colors.dart';
import 'package:hypha_wallet/design/icons/hypha_icons.dart';
import 'package:hypha_wallet/design/themes/extensions/theme_extension_provider.dart';
import 'package:hypha_wallet/ui/blocs/authentication/authentication_bloc.dart';
import 'package:hypha_wallet/ui/onboarding/join_dao/join_dao_rationale_bottom_sheet.dart';
import 'package:hypha_wallet/ui/settings/hypha_confirmation_page.dart';
import 'package:hypha_wallet/ui/settings/interactor/settings_bloc.dart';
import 'package:hypha_wallet/ui/settings/save_key_page.dart';
Expand Down Expand Up @@ -83,18 +82,7 @@ class SettingsView extends StatelessWidget {
subtitle:
'Your private key (and the 12 secret words) are the only way to retrieve your hypha account and funds',
onTap: () {
showModalBottomSheet(
useSafeArea: true,
isScrollControlled: true,
builder: (context) {
return const JoinDaoRationaleBottomSheet(daoName: 'Cuties in Bali', secret: 'secret');
},
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(30)),
),
context: context,
);
// Get.to(() => SaveKeyPage(state.userAuthData!.eOSPrivateKey.toString()));
Get.to(() => SaveKeyPage(state.userAuthData!.eOSPrivateKey.toString()));
},
);
},
Expand Down

0 comments on commit 30ef7ca

Please sign in to comment.