Merge pull request woocommerce/woocommerce-admin#2827 from woocommerce/fix/2813

use wc-admin urls in devdocs
This commit is contained in:
Ron Rennick 2019-08-22 14:15:19 -03:00 committed by GitHub
commit 714a13ca1d
1 changed files with 7 additions and 3 deletions

View File

@ -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
}
>