Merge pull request woocommerce/woocommerce-admin#1114 from woocommerce/fix/orders-table-link

Use <Link> instead of <a> for Orders table link
This commit is contained in:
Albert Juhé Lluveras 2018-12-18 15:55:34 +01:00 committed by GitHub
commit 92ab02a438
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,6 @@ import {
} from '@woocommerce/date';
import { Link, OrderStatus, ViewMoreList } from '@woocommerce/components';
import { formatCurrency } from '@woocommerce/currency';
import { getAdminLink } from '@woocommerce/navigation';
/**
* Internal dependencies
@ -139,7 +138,11 @@ class OrdersReportTable extends Component {
value: date,
},
{
display: <a href={ getAdminLink( 'post.php?post=' + id + '&action=edit' ) }>{ id }</a>,
display: (
<Link href={ 'post.php?post=' + id + '&action=edit' } type="wp-admin">
{ id }
</Link>
),
value: id,
},
{