Skip to content

Commit

Permalink
Remove not supported fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Bueno committed Jul 26, 2022
1 parent a3c3a43 commit 5192795
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
4 changes: 2 additions & 2 deletions components/x-gift-article/src/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default (props) => (
)}

{props.isRafActive && (
<>
<div>
<ReferAFriend {...props} />

{props.showRafCopyConfirmation && (
Expand All @@ -48,7 +48,7 @@ export default (props) => (
isArticleSharingUxUpdates={props.isArticleSharingUxUpdates}
/>
)}
</>
</div>
)}

{props.showMobileShareLinks && <MobileShareButtons mobileShareLinks={props.mobileShareLinks} />}
Expand Down
58 changes: 28 additions & 30 deletions components/x-gift-article/src/ReferAFriend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,35 @@ import { UrlType } from './lib/constants'

export default ({ rafTitle, rafDescription, urls, actions }) => {
return (
<>
<div className="x-gift-article--raf">
<h4>{rafTitle}</h4>
<p>{rafDescription}</p>
<div
className="js-gift-article__url-section x-gift-article__url-section"
data-section-id={UrlType.raf + 'Link'}
data-trackable={UrlType.raf + 'Link'}
>
<span className="o-forms-input o-forms-input--text">
<input
type="text"
name={UrlType.raf}
value={urls.raf}
className="x-gift-article__url-input"
readOnly
aria-label="Gift free subscription shareable link"
/>
</span>
<div className="x-gift-article__buttons">
<button
className="js-copy-link x-gift-article__button x-gift-article-button--gap"
type="button"
onClick={actions.copyRafUrl}
aria-label="Copy the free subscription link to your clipboard"
>
Copy link
</button>
</div>
<div className="x-gift-article--raf">
<h4>{rafTitle}</h4>
<p>{rafDescription}</p>
<div
className="js-gift-article__url-section x-gift-article__url-section"
data-section-id={UrlType.raf + 'Link'}
data-trackable={UrlType.raf + 'Link'}
>
<span className="o-forms-input o-forms-input--text">
<input
type="text"
name={UrlType.raf}
value={urls.raf}
className="x-gift-article__url-input"
readOnly
aria-label="Gift free subscription shareable link"
/>
</span>
<div className="x-gift-article__buttons">
<button
className="js-copy-link x-gift-article__button x-gift-article-button--gap"
type="button"
onClick={actions.copyRafUrl}
aria-label="Copy the free subscription link to your clipboard"
>
Copy link
</button>
</div>
</div>
</>
</div>
)
}

0 comments on commit 5192795

Please sign in to comment.