Skip to content

Commit d8ea669

Browse files
generatedunixname89002005320881meta-codesync[bot]
authored andcommitted
Fix fb-www/direct-export-default issues
Reviewed By: mariusschulz Differential Revision: D91446960 fbshipit-source-id: 907d67565ad1dbb34674ab0d9d475af42adfe0a8
1 parent 41148e9 commit d8ea669

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/e2e/static/example/pages/_app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
import Layout from '../components/layout.jsx';
1212
import React from 'react';
1313

14-
function MyApp({Component, pageProps}) {
14+
export default function MyApp({Component, pageProps}) {
1515
return (
1616
<Layout>
1717
<Component {...pageProps} />
1818
</Layout>
1919
);
2020
}
21-
22-
export default MyApp;

packages/e2e/static/links/src/App.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getClosure(i) {
2828
};
2929
}
3030

31-
function App() {
31+
export default function App() {
3232
return (
3333
<div>
3434
{[1, 2, 3, 4, 5, 6, 7, 8].map(i => {
@@ -44,5 +44,3 @@ function App() {
4444
</div>
4545
);
4646
}
47-
48-
export default App;

0 commit comments

Comments
 (0)