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 ComponentExample from './example';
|
||||||
import ComponentDocs from './docs';
|
import ComponentDocs from './docs';
|
||||||
import { Card, Link } from '@woocommerce/components';
|
import { Card, Link } from '@woocommerce/components';
|
||||||
import { getAdminLink } from '@woocommerce/navigation';
|
|
||||||
import examples from './examples.json';
|
import examples from './examples.json';
|
||||||
import './style.scss';
|
import './style.scss';
|
||||||
|
|
||||||
|
@ -63,14 +62,19 @@ export default class extends Component {
|
||||||
component ? (
|
component ? (
|
||||||
componentName
|
componentName
|
||||||
) : (
|
) : (
|
||||||
<Link href={ getAdminLink( `?page=wc-admin&path=/devdocs/${ filePath }` ) }>
|
<Link
|
||||||
|
href={ `admin.php?page=wc-admin&path=/devdocs/${ filePath }` }
|
||||||
|
type="wc-admin"
|
||||||
|
>
|
||||||
{ componentName }
|
{ componentName }
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
action={
|
action={
|
||||||
component ? (
|
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
|
) : null
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue