diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-12 14:06:25 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-12 14:06:25 -0400 |
| commit | 46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (patch) | |
| tree | a95fd534fc27761d8b26d0dffcdb5f300f7a61c7 /frontend/components/Item.js | |
| parent | f7bea2d1b7be2b70dceb25c9837f608b538e9cec (diff) | |
wip
Diffstat (limited to 'frontend/components/Item.js')
| -rw-r--r-- | frontend/components/Item.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/components/Item.js b/frontend/components/Item.js index 87fb0b9..935930d 100644 --- a/frontend/components/Item.js +++ b/frontend/components/Item.js @@ -3,7 +3,8 @@ import Title from './styles/Title'; import styled from 'styled-components'; import slugify from 'slugify'; import { compose } from 'react-apollo'; -import { Link } from '../routes'; +// import { Link } from '../routes'; +import Link from 'next/link'; import AddToCart from './AddToCart'; import formatMoney from '../lib/formatMoney'; import { removeItemMutation } from '../enhancers/enhancers'; @@ -70,10 +71,9 @@ class ItemComponent extends React.Component { {item.image ? <img src={item.image} alt={item.title} /> : null} <Title> <Link - route="item" - params={{ - slug: slugify(item.title), - itemId: item.id, + href={{ + pathname: '/item', + query: { id: item.id }, }} > <a>{item.title}</a> |
