Use <Link> instead of <a> for Orders table link

This commit is contained in:
Albert Juhé Lluveras 2018-12-18 10:44:43 +01:00
parent 9ef07a41b6
commit 03adb993c9
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,6 @@ import {
} from '@woocommerce/date'; } from '@woocommerce/date';
import { Link, OrderStatus, ViewMoreList } from '@woocommerce/components'; import { Link, OrderStatus, ViewMoreList } from '@woocommerce/components';
import { formatCurrency } from '@woocommerce/currency'; import { formatCurrency } from '@woocommerce/currency';
import { getAdminLink } from '@woocommerce/navigation';
/** /**
* Internal dependencies * Internal dependencies
@ -139,7 +138,11 @@ class OrdersReportTable extends Component {
value: date, 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, value: id,
}, },
{ {