refactor: conditionally render the create order button based on filtered orders state
This commit is contained in:
@@ -222,6 +222,7 @@ class _ViewOrdersViewState extends State<ViewOrdersView> {
|
|||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (state.filteredOrders.isNotEmpty)
|
||||||
UiButton.primary(
|
UiButton.primary(
|
||||||
text: t.client_view_orders.post_button,
|
text: t.client_view_orders.post_button,
|
||||||
leadingIcon: UiIcons.add,
|
leadingIcon: UiIcons.add,
|
||||||
|
|||||||
Reference in New Issue
Block a user