woocommerce/plugins/woocommerce-admin/client/header/activity-panel/activity-outbound-link
Timmy Crawford 8dc7b4cbea G2: Remove pink/purple from ActivityPanels and Header (https://github.com/woocommerce/woocommerce-admin/pull/4586)
* G2: Remove pink/purple from ActivityPanels and Header

* Manage all orders purple.
2020-06-15 17:24:01 -07: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 Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
style.scss G2: Remove pink/purple from ActivityPanels and Header (https://github.com/woocommerce/woocommerce-admin/pull/4586) 2020-06-15 17:24:01 -07: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.