dec97d178e
* Importing all components from a root components file * Update Ratings component to avoid circular dependencies, fix tests * Export components on `wc.components`, use this for importing * Move react-dates initialize to the components file * Push query changes to history Fixes an issues where native a links do not update the query in `history` * Update test config for new @woocommerce/components path * Update chart components import * Merge simple/complex & alphabetize by first exported name * Add a readme with info about how to call these components |
||
---|---|---|
.. | ||
README.md | ||
index.js | ||
style.scss |
README.md
ActivityOutboundLink
ActivityOutboundLink
creates a styled link for use in the Activity Panel.
How to use:
import ActivityOutboundLink from 'layout/activity-panel/activity-outbound-link';
render: function() {
return (
<ActivityOutboundLink
href="edit.php?post_type=shop_coupon"
type="wp-admin"
>
Coupons
</ActivityOutboundLink>
);
}
Props
href
(required): The resource to link to.type
(required): Type of link. For wp-admin and wc-admin, the correct prefix is appended. Accepts: wc-admin, wp-admin, external.