Use <Link> instead of <a> for Orders table link
This commit is contained in:
parent
9ef07a41b6
commit
03adb993c9
|
@ -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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue