Skip to content

Commit 0934ff6

Browse files
authoredMar 29, 2023
Merge pull request #698 from Financial-Times/ENTST-301-enterprise-links-design-issues
Show View Enterprise Links at every ES stage
2 parents 3408c26 + 62870dc commit 0934ff6

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed
 

‎components/x-gift-article/src/Form.jsx

+15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import RadioButtonsSection from './RadioButtonsSection'
44
import UrlSection from './UrlSection'
55
import MobileShareButtons from './MobileShareButtons'
66
import CopyConfirmation from './CopyConfirmation'
7+
import { ShareType } from './lib/constants'
78

89
export default (props) => (
910
<div className="x-gift-article">
@@ -36,6 +37,20 @@ export default (props) => (
3637
/>
3738
)}
3839

40+
{props.shareType === ShareType.enterprise && !props.enterpriseFirstTimeUser && (
41+
<div className="x-gift-article-message--link-wrapper">
42+
<a
43+
className="x-gift-article-message--link"
44+
href="https://enterprise-sharing-dashboard.ft.com"
45+
target="_blank"
46+
rel="noreferrer"
47+
data-trackable="enterprise-sharing-dashboard"
48+
>
49+
View all Enterprise Links
50+
</a>
51+
</div>
52+
)}
53+
3954
{props.showMobileShareLinks && <MobileShareButtons mobileShareLinks={props.mobileShareLinks} />}
4055
</div>
4156
)

‎components/x-gift-article/src/Message.jsx

-11
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,6 @@ export default ({
115115
return (
116116
<div className="x-gift-article-message">
117117
Your organisation has <strong>Enterprise Sharing credits</strong> available for you to use
118-
<br />
119-
<br />
120-
<a
121-
className="x-gift-article-message--link"
122-
href="https://enterprise-sharing-dashboard.ft.com"
123-
target="_blank"
124-
rel="noreferrer"
125-
data-trackable="enterprise-sharing-dashboard"
126-
>
127-
View all Enterprise Links
128-
</a>
129118
</div>
130119
)
131120
} else {

‎components/x-gift-article/src/Message.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
margin-top: oSpacingByName('s3');
77
}
88

9-
.x-gift-article-message--link {
10-
color: oColorsByName('teal');
9+
.x-gift-article-message--link-wrapper {
10+
margin-top: oSpacingByName('s3');
11+
12+
.x-gift-article-message--link {
13+
color: oColorsByName('teal');
14+
}
1115
}
1216

1317
.x-gift-article-message--enterprise {

0 commit comments

Comments
 (0)
Please sign in to comment.