mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
✨ Prepare new LearnMore component
This commit is contained in:
parent
5b212879d5
commit
f64a9485a2
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
const LearnMore = ( { url } ) => {
|
||||
if ( ! url || '#' === url ) {
|
||||
console.warn( 'Missing Learn More URL: ', url );
|
||||
}
|
||||
|
||||
return (
|
||||
<a href={ url } target="_blank" rel="noreferrer">
|
||||
Learn more
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
export default LearnMore;
|
Loading…
Add table
Add a link
Reference in a new issue