Skip to content

Commit 19efd33

Browse files
authored
Merge pull request #306 from webpack/feature/fix-build-issues
Fixing Build Issues
2 parents 317a18c + 9079bd4 commit 19efd33

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

components/navigation/navigation-style.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
.navigation__inner {
1818
position:absolute;
19+
left:0;
20+
21+
@include break {
22+
left:auto;
23+
}
1924
}
2025

2126
.navigation__link:hover,

components/splash/splash.jsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,10 @@ export default props => {
2828
<p>Through contributions, donations, and sponsorship, you allow webpack to thrive. Your donations directly support office hours, continued enhancements, and most importantly, great documentation and learning material!</p>
2929

3030
<h2>Sponsors</h2>
31-
32-
<Interactive
33-
id="components/support/support.jsx"
34-
component={ Support }
35-
number={ 5 }
36-
type="sponsor" />
31+
<Support number={ 5 } type="sponsor" />
3732

3833
<h2>Backers</h2>
39-
40-
<Interactive
41-
id="components/support/support.jsx"
42-
component={ Support }
43-
number={ 20 }
44-
type="backer" />
34+
<Support number={ 20 } type="backer" />
4535
</Container>
4636
</div>
4737
);

components/support/support.jsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
11
import React from 'react';
22
import './support-style';
33

4-
function getImage(a, funcName) {
5-
if (typeof window !== 'undefined') {
6-
window.CloudFlare && window.CloudFlare.push(
7-
function(b) {
8-
b(['cloudflare/rocket'], function(c) {
9-
c.push(function() {
10-
(function() {
11-
window.avatars[funcName]();
12-
}).call(a);
13-
});
14-
});
15-
}
16-
);
17-
}
18-
}
19-
204
export default ({number, type}) => {
21-
let funcName = type === 'backer' ? 'backerLoaded' : 'sponsorLoaded';
22-
235
return (
246
<div className="support">
257
{[...Array(number)].map((x, i) =>
@@ -29,8 +11,7 @@ export default ({number, type}) => {
2911
target="_blank">
3012
<img
3113
src={ `//opencollective.com/webpack/${type}/${i}/avatar` }
32-
alt={ `${type} avatar` }
33-
onLoad={ getImage(this, funcName) } />
14+
alt={ `${type} avatar` } />
3415
</a>
3516
)}
3617

0 commit comments

Comments
 (0)