woocommerce/plugins/woocommerce-admin/client/header/activity-panel/activity-outbound-link
Kelly Dwan 6d2eec1c12 Update `layout/*` file structure (https://github.com/woocommerce/woocommerce-admin/pull/463)
* Move section, header, and activity panel out of layout folder

* Update file soures

* Move documentation into component, and update generation script to handle the duplicated exports
2018-09-21 11:19:05 -04:00
..
README.md Update `layout/*` file structure (https://github.com/woocommerce/woocommerce-admin/pull/463) 2018-09-21 11:19:05 -04:00
index.js Update `layout/*` file structure (https://github.com/woocommerce/woocommerce-admin/pull/463) 2018-09-21 11:19:05 -04:00
style.scss Update `layout/*` file structure (https://github.com/woocommerce/woocommerce-admin/pull/463) 2018-09-21 11:19:05 -04:00

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.