Skip to content

Commit 33c3af2

Browse files
authored
[Blocks Fixture] Remove remaining Blocks (facebook#18840)
1 parent 595d27b commit 33c3af2

File tree

7 files changed

+4
-74
lines changed

7 files changed

+4
-74
lines changed

fixtures/blocks/src/server/App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import FeedPage from './FeedPage';
1212
import ProfilePage from './ProfilePage';
1313

1414
// TODO: Replace with asset reference.
15-
import loadShell from './Shell.block';
15+
import Shell from '../client/Shell';
1616

1717
// TODO: Router component?
1818
const AppRoutes = {
@@ -23,7 +23,6 @@ const AppRoutes = {
2323
};
2424

2525
export default function App(props) {
26-
const Shell = loadShell();
2726
const match = matchRoute(props, AppRoutes);
2827
return <Shell>{match}</Shell>;
2928
}

fixtures/blocks/src/server/Comments.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import * as React from 'react';
1010
import {fetch} from 'react-data/fetch';
1111

1212
// TODO: Replace with asset reference.
13-
import loadLink from './Link.block';
13+
import Link from '../client/Link';
1414

1515
export default function Comments({postId}) {
16-
const Link = loadLink();
1716
const comments = fetch(`/comments?postId=${postId}&_expand=user`).json();
1817
return (
1918
<>

fixtures/blocks/src/server/Link.block.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

fixtures/blocks/src/server/Post.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ import {Suspense} from 'react';
1111
import Comments from './Comments';
1212

1313
// TODO: Replace with asset reference.
14-
import loadLink from './Link.block';
14+
import Link from '../client/Link';
1515

1616
export default function Post({post}) {
17-
const Link = loadLink();
1817
return (
1918
<div
2019
style={{

fixtures/blocks/src/server/ProfileNav.block.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

fixtures/blocks/src/server/ProfilePage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ProfileTimeline from './ProfileTimeline';
1313
import ProfileBio from './ProfileBio';
1414

1515
// TODO: Replace with asset reference.
16-
import loadProfileNav from './ProfileNav.block';
16+
import ProfileNav from '../client/ProfileNav';
1717

1818
// TODO: Router component?
1919
const ProfileRoutes = {
@@ -23,7 +23,6 @@ const ProfileRoutes = {
2323

2424
export default function ProfilePage(props) {
2525
const user = fetch(`/users/${props.userId}`).json();
26-
const ProfileNav = loadProfileNav();
2726
const match = matchRoute(props, ProfileRoutes);
2827
return (
2928
<>

fixtures/blocks/src/server/Shell.block.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)