Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jun 7, 2024
1 parent 5910276 commit a0e2f15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class CloseConfirmationDialog extends StudyPageWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final controller = ref.watch(studyControllerProvider(studyId).notifier);
final formViewModel =
ref.watch(studySettingsFormViewModelProvider(studyId));
final formViewModel = ref.watch(studySettingsFormViewModelProvider(studyId));

return ReactiveForm(
formGroup: formViewModel.form,
Expand All @@ -31,12 +30,12 @@ class CloseConfirmationDialog extends StudyPageWidget {
children: [
Flexible(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
RichText(
text: TextSpan(
text: tr.dialog_study_close_description,
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
RichText(
text: TextSpan(
text: tr.dialog_study_close_description,
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion designer_v2/lib/features/dialogs/study_dialogs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class StudyDialog extends StudyPageWidget {
Widget build(BuildContext context, WidgetRef ref) {
final state = ref.watch(studyControllerProvider(studyId));

switch(dialogType) {
switch (dialogType) {
case StudyDialogType.publish:
return state.isPublished ? PublishSuccessDialog(studyId) : PublishConfirmationDialog(studyId);
case StudyDialogType.close:
Expand Down

0 comments on commit a0e2f15

Please sign in to comment.