Skip to content

Commit 23ddf1c

Browse files
committed
Blockchain: Removes Join Now from head menu; Fixes text style in intro block
1 parent 6287460 commit 23ddf1c

File tree

6 files changed

+31
-21
lines changed

6 files changed

+31
-21
lines changed

.exchange-rates.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1505430000,"base":"USD","rates":{"AED":3.673014,"AFN":68.630079,"ALL":111.957598,"AMD":477.735313,"ANG":1.777664,"AOA":165.9215,"ARS":16.991,"AUD":1.250112,"AWG":1.795251,"AZN":1.7,"BAM":1.641215,"BBD":2,"BDT":80.583547,"BGN":1.639955,"BHD":0.37724,"BIF":1741.080974,"BMD":1,"BND":1.349501,"BOB":6.955968,"BRL":3.119595,"BSD":1,"BTC":0.000301901034,"BTN":64.047228,"BWP":10.14439,"BYN":1.941982,"BZD":2.01313,"CAD":1.216203,"CDF":1562.881563,"CHF":0.961569,"CLF":0.02319,"CLP":624.2,"CNH":6.543403,"CNY":6.552396,"COP":2899.653333,"CRC":576.621761,"CUC":1,"CUP":25.5,"CVE":92.875,"CZK":21.87455,"DJF":178.76,"DKK":6.242562,"DOP":47.244322,"DZD":111.2945,"EGP":17.645,"ERN":15.337793,"ETB":23.418183,"EUR":0.839009,"FJD":2.025157,"FKP":0.746204,"GBP":0.746204,"GEL":2.459125,"GGP":0.746204,"GHS":4.416734,"GIP":0.746204,"GMD":46.125,"GNF":8992.5,"GTQ":7.283821,"GYD":207.546477,"HKD":7.813011,"HNL":23.389688,"HRK":6.2791,"HTG":62.947328,"HUF":258.805,"IDR":13239.951073,"ILS":3.521225,"IMP":0.746204,"INR":64.1637,"IQD":1164.934957,"IRR":33310,"ISK":105.21,"JEP":0.746204,"JMD":129.903937,"JOD":0.709503,"JPY":109.94437037,"KES":102.959908,"KGS":68.673222,"KHR":4083.333333,"KMF":413.765225,"KPW":900,"KRW":1134.17,"KWD":0.301589,"KYD":0.832258,"KZT":338.941816,"LAK":8303.566667,"LBP":1504.524887,"LKR":152.657899,"LRD":117.074294,"LSL":13.142562,"LYD":1.354936,"MAD":9.364378,"MDL":17.599529,"MGA":2988.444875,"MKD":51.67375,"MMK":1352.674087,"MNT":2449.441941,"MOP":8.03614,"MRO":364.460827,"MUR":33.35,"MVR":15.409873,"MWK":724.675734,"MXN":17.662526,"MYR":4.2065,"MZN":61.732957,"NAD":13.142562,"NGN":361.029651,"NIO":30.28567,"NOK":7.874942,"NPR":102.408065,"NZD":1.383579,"OMR":0.385035,"PAB":1,"PEN":3.238498,"PGK":3.190543,"PHP":51.18,"PKR":105.284982,"PLN":3.590381,"PYG":5678.502124,"QAR":3.705007,"RON":3.86032,"RSD":99.85,"RUB":57.5596,"RWF":830.109566,"SAR":3.7507,"SBD":7.735487,"SCR":13.392938,"SDG":6.668096,"SEK":7.989599,"SGD":1.346466,"SHP":0.746204,"SLL":7541.125831,"SOS":576.617179,"SRD":7.438,"SSP":125.7373,"STD":20527.540843,"SVC":8.737628,"SYP":514.97499,"SZL":13.149654,"THB":33.08,"TJS":8.785895,"TMT":3.504979,"TND":2.439914,"TOP":2.219187,"TRY":3.434374,"TTD":6.737899,"TWD":30.098712,"TZS":2242.7,"UAH":26.131535,"UGX":3590.25,"USD":1,"UYU":29.00675,"UZS":8081.45,"VEF":9.985022,"VND":22719.200123,"VUV":104.382651,"WST":2.483371,"XAF":550.353977,"XAG":0.05608526,"XAU":0.00074986,"XCD":2.70255,"XDR":0.704516,"XOF":550.353977,"XPD":0.00107869,"XPF":100.120433,"XPT":0.00101293,"YER":250.306642,"ZAR":13.131781,"ZMW":9.382882,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1505476800,"base":"USD","rates":{"AED":3.672973,"AFN":68.53875,"ALL":111.73,"AMD":478.45,"ANG":1.779153,"AOA":165.9215,"ARS":16.991,"AUD":1.247669,"AWG":1.795251,"AZN":1.7,"BAM":1.635738,"BBD":2,"BDT":80.748286,"BGN":1.636866,"BHD":0.377182,"BIF":1744.7,"BMD":1,"BND":1.344435,"BOB":6.961525,"BRL":3.119496,"BSD":1,"BTC":0.000332933814,"BTN":64.115874,"BWP":10.18401,"BYN":1.938447,"BZD":2.014757,"CAD":1.214515,"CDF":1562.881563,"CHF":0.960965,"CLF":0.02319,"CLP":624.585,"CNH":6.548744,"CNY":6.544708,"COP":2897.85,"CRC":576.58,"CUC":1,"CUP":25.5,"CVE":92.875,"CZK":21.82455,"DJF":178.76,"DKK":6.226904,"DOP":47.249072,"DZD":111.064167,"EGP":17.649,"ERN":15.342579,"ETB":23.436764,"EUR":0.836853,"FJD":2.011699,"FKP":0.737039,"GBP":0.737039,"GEL":2.462425,"GGP":0.737039,"GHS":4.432711,"GIP":0.737039,"GMD":46.125,"GNF":8958.4,"GTQ":7.290084,"GYD":207.965254,"HKD":7.81631,"HNL":23.386311,"HRK":6.257973,"HTG":63.022754,"HUF":258.53643,"IDR":13245.494062,"ILS":3.521825,"IMP":0.737039,"INR":64.095,"IQD":1167.5,"IRR":33310,"ISK":105.869261,"JEP":0.737039,"JMD":130.718525,"JOD":0.709001,"JPY":111.24616667,"KES":102.89,"KGS":68.643776,"KHR":4053.25,"KMF":413.765225,"KPW":900,"KRW":1130.8775,"KWD":0.301312,"KYD":0.832879,"KZT":339.45,"LAK":8284.8,"LBP":1507.45,"LKR":152.844139,"LRD":117.074294,"LSL":13.189412,"LYD":1.361315,"MAD":9.346,"MDL":17.619678,"MGA":2964.6,"MKD":51.51098,"MMK":1356.4,"MNT":2453.879163,"MOP":8.046782,"MRO":364.805,"MUR":33.435,"MVR":15.409873,"MWK":725.54,"MXN":17.69335,"MYR":4.189799,"MZN":61.31,"NAD":13.19125,"NGN":359.787233,"NIO":30.350347,"NOK":7.818863,"NPR":102.528085,"NZD":1.373359,"OMR":0.384928,"PAB":1,"PEN":3.23699,"PGK":3.19319,"PHP":51.3075,"PKR":105.338422,"PLN":3.576407,"PYG":5651.15,"QAR":3.705007,"RON":3.848964,"RSD":99.74475,"RUB":57.6456,"RWF":831.045,"SAR":3.750774,"SBD":7.734844,"SCR":13.58249,"SDG":6.673154,"SEK":7.952538,"SGD":1.344,"SHP":0.737039,"SLL":7538.529905,"SOS":578.390064,"SRD":7.438,"SSP":125.881,"STD":20535.146277,"SVC":8.74534,"SYP":514.99999,"SZL":13.18534,"THB":33.09125,"TJS":8.792897,"TMT":3.504979,"TND":2.445204,"TOP":2.217942,"TRY":3.440186,"TTD":6.743577,"TWD":30.062,"TZS":2243.1,"UAH":26.190843,"UGX":3593.3,"USD":1,"UYU":28.993638,"UZS":8087.8,"VEF":9.985022,"VND":22753.894861,"VUV":103.676756,"WST":2.509453,"XAF":548.939628,"XAG":0.05661072,"XAU":0.00075623,"XCD":2.70255,"XDR":0.704516,"XOF":548.939628,"XPD":0.00107946,"XPF":99.863135,"XPT":0.00102682,"YER":250.306642,"ZAR":13.17867,"ZMW":9.3882,"ZWL":322.355011}}

__tests__/shared/components/tc-communities/__snapshots__/Header.jsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ exports[`Snapshot match 1`] = `
1717
]
1818
}
1919
groupId=""
20+
hideJoinNow={false}
2021
hideSearch={false}
2122
isMobileOpen={false}
2223
loginUrl="/some/login/url"
@@ -78,6 +79,7 @@ exports[`Snapshot match 2`] = `
7879
}
7980
cssUrl="some/css/url"
8081
groupId=""
82+
hideJoinNow={false}
8183
hideSearch={false}
8284
isMobileOpen={true}
8385
loginUrl="/some/login/url"

src/shared/components/tc-communities/Header/index.jsx

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function Header(props) {
3030
closeMenu,
3131
communitySelector,
3232
groupId,
33+
hideJoinNow,
3334
openMenu,
3435
openedMenu,
3536
logos,
@@ -117,19 +118,21 @@ function Header(props) {
117118
</div>
118119
) : (
119120
<div className={theme.authorize}>
120-
<button
121-
onClick={() => {
122-
let url = encodeURIComponent(
123-
`${window.location.href}?join=${groupId}`,
124-
);
125-
url = encodeURIComponent(
126-
`${config.URL.AUTH}/member?retUrl=${url}`,
127-
);
128-
url = encodeURIComponent(url);
129-
window.location = `${config.URL.AUTH}/member/registration?retUrl=${url}`;
130-
}}
131-
className={theme.btnRegister}
132-
>Join Now</button>
121+
{ hideJoinNow ? null : (
122+
<button
123+
onClick={() => {
124+
let url = encodeURIComponent(
125+
`${window.location.href}?join=${groupId}`,
126+
);
127+
url = encodeURIComponent(
128+
`${config.URL.AUTH}/member?retUrl=${url}`,
129+
);
130+
url = encodeURIComponent(url);
131+
window.location = `${config.URL.AUTH}/member/registration?retUrl=${url}`;
132+
}}
133+
className={theme.btnRegister}
134+
>Join Now</button>
135+
)}
133136
<button
134137
onClick={() => {
135138
const url = encodeURIComponent(
@@ -229,6 +232,7 @@ Header.defaultProps = {
229232
activeTrigger: null,
230233
baseUrl: '',
231234
groupId: '',
235+
hideJoinNow: false,
232236
menuItems: [],
233237
openedMenu: null,
234238
logos: [],
@@ -257,6 +261,7 @@ Header.propTypes = {
257261
}),
258262
])),
259263
additionalLogos: PT.arrayOf(PT.string),
264+
hideJoinNow: PT.bool,
260265
hideSearch: PT.bool,
261266
chevronOverAvatar: PT.bool,
262267
openedMenu: PT.shape({}),

src/shared/components/tc-communities/communities/blockchain/Home/style.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
.introContainer {
6565
background: $tc-gray-neutral-light;
66-
color: #394146;
66+
color: #787d81;
6767
padding-bottom: 48px;
6868
margin-bottom: 24px;
6969

@@ -73,15 +73,14 @@
7373
}
7474

7575
h1 {
76-
@include roboto;
77-
78-
font-size: 36px;
76+
color: #394146;
77+
font: 600 36px 'Open Sans';
7978
margin-bottom: 12px;
8079
}
8180

8281
p {
83-
color: #394146;
84-
font: 15px/22px 'roboto';
82+
color: #787d81;
83+
font: 15px/22px 'Open Sans';
8584
padding: 6px 0;
8685
}
8786
}

src/shared/containers/tc-communities/Header.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function mapStateToProps(state, ownProps) {
2323
communityId: meta.communityId,
2424
communitySelector: meta.communitySelector,
2525
groupId: meta.groupId,
26+
hideJoinNow: ownProps.hideJoinNow,
2627
hideSearch: meta.hideSearch,
2728
isMobileOpen: meta.isMobileOpen,
2829
logos: meta.logos,

src/shared/routes/Communities/Blockchain/Routes.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export default function Routes({ base, member, meta }) {
2626
<Route
2727
component={({ match }) => (
2828
<div>
29-
<Header pageId={match.params.pageId || 'home'} />
29+
<Header
30+
hideJoinNow
31+
pageId={match.params.pageId || 'home'}
32+
/>
3033
<Switch>
3134
<Route
3235
component={() => (

0 commit comments

Comments
 (0)