Skip to content

Commit

Permalink
Adjust ux button for scan qr
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Castillo <[email protected]>
  • Loading branch information
tomrndom committed Jul 24, 2024
1 parent d0799c7 commit 5dec68c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,7 @@
"wrong_qr_text": "Wrong format on QR code.",
"apply_filters": "Apply Filters",
"scan_qr": "Scan QR",
"close_scan_qr": "Close Scanner",
"placeholders": {
"search_orders": "Search by Order #, Buyer, Attendee ",
"company_filter": "Filter by Company",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/orders/purchase-order-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ class PurchaseOrderListPage extends React.Component {
{ label: "Offline", value: "Offline" }
];

console.log("FILTERS", purchaseOrderFilters);

if (!currentSummit.id) return <div />;

return (
Expand Down Expand Up @@ -313,7 +311,9 @@ class PurchaseOrderListPage extends React.Component {
}))
}
>
{T.translate("purchase_order_list.scan_qr")}
{scanQr
? T.translate("purchase_order_list.close_scan_qr")
: T.translate("purchase_order_list.scan_qr")}
</button>
</div>
<div className="col-md-4 text-right">
Expand Down

0 comments on commit 5dec68c

Please sign in to comment.