Merge pull request woocommerce/woocommerce-admin#2827 from woocommerce/fix/2813
use wc-admin urls in devdocs
This commit is contained in:
commit
714a13ca1d
|
@ -12,7 +12,6 @@ import { find, get } from 'lodash';
|
|||
import ComponentExample from './example';
|
||||
import ComponentDocs from './docs';
|
||||
import { Card, Link } from '@woocommerce/components';
|
||||
import { getAdminLink } from '@woocommerce/navigation';
|
||||
import examples from './examples.json';
|
||||
import './style.scss';
|
||||
|
||||
|
@ -63,14 +62,19 @@ export default class extends Component {
|
|||
component ? (
|
||||
componentName
|
||||
) : (
|
||||
<Link href={ getAdminLink( `?page=wc-admin&path=/devdocs/${ filePath }` ) }>
|
||||
<Link
|
||||
href={ `admin.php?page=wc-admin&path=/devdocs/${ filePath }` }
|
||||
type="wc-admin"
|
||||
>
|
||||
{ componentName }
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
action={
|
||||
component ? (
|
||||
<Link href={ getAdminLink( '?page=wc-admin&path=/devdocs' ) }>Full list</Link>
|
||||
<Link href={ '?page=wc-admin&path=/devdocs' } type="wc-admin">
|
||||
Full list
|
||||
</Link>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue