Skip to content

Commit c7d8a0b

Browse files
refactor: remove useless popoverMutex from _AddOptionButton widget
1 parent 286c89b commit c7d8a0b

File tree

1 file changed

+2
-6
lines changed
  • frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option

1 file changed

+2
-6
lines changed

frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class SelectOptionTypeOptionWidget extends StatelessWidget {
5252
),
5353
),
5454
if (state.options.isEmpty && !state.isEditingOption)
55-
_AddOptionButton(popoverMutex: popoverMutex),
55+
const _AddOptionButton(),
5656
_OptionList(popoverMutex: popoverMutex)
5757
];
5858

@@ -231,11 +231,7 @@ class _OptionCellState extends State<_OptionCell> {
231231
}
232232

233233
class _AddOptionButton extends StatelessWidget {
234-
final PopoverMutex? popoverMutex;
235-
const _AddOptionButton({
236-
Key? key,
237-
this.popoverMutex,
238-
}) : super(key: key);
234+
const _AddOptionButton({Key? key}) : super(key: key);
239235

240236
@override
241237
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)