summaryrefslogtreecommitdiffstats
path: root/frontend/components/OrderList.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
committerWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
commit46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (patch)
treea95fd534fc27761d8b26d0dffcdb5f300f7a61c7 /frontend/components/OrderList.js
parentf7bea2d1b7be2b70dceb25c9837f608b538e9cec (diff)
wip
Diffstat (limited to 'frontend/components/OrderList.js')
-rw-r--r--frontend/components/OrderList.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/components/OrderList.js b/frontend/components/OrderList.js
index cf12dc8..6a1ad67 100644
--- a/frontend/components/OrderList.js
+++ b/frontend/components/OrderList.js
@@ -31,7 +31,12 @@ class OrderList extends Component {
<ul className="order-items">
<hr />
<h2>
- <Link href={`/order/${order.id}`} prefetch>
+ <Link
+ href={{
+ pathname: '/order',
+ query: { id: order.id },
+ }}
+ >
<a>{order.id}</a>
</Link>
<time dateTime={order.createdAt} title={format(order.createdAt, 'MMMM D, YYYY h:mm A')}>