File tree Expand file tree Collapse file tree 7 files changed +4
-74
lines changed
fixtures/blocks/src/server Expand file tree Collapse file tree 7 files changed +4
-74
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import FeedPage from './FeedPage';
12
12
import ProfilePage from './ProfilePage' ;
13
13
14
14
// TODO: Replace with asset reference.
15
- import loadShell from './ Shell.block ' ;
15
+ import Shell from '../client/ Shell' ;
16
16
17
17
// TODO: Router component?
18
18
const AppRoutes = {
@@ -23,7 +23,6 @@ const AppRoutes = {
23
23
} ;
24
24
25
25
export default function App ( props ) {
26
- const Shell = loadShell ( ) ;
27
26
const match = matchRoute ( props , AppRoutes ) ;
28
27
return < Shell > { match } </ Shell > ;
29
28
}
Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ import * as React from 'react';
10
10
import { fetch } from 'react-data/fetch' ;
11
11
12
12
// TODO: Replace with asset reference.
13
- import loadLink from './ Link.block ' ;
13
+ import Link from '../client/ Link' ;
14
14
15
15
export default function Comments ( { postId} ) {
16
- const Link = loadLink ( ) ;
17
16
const comments = fetch ( `/comments?postId=${ postId } &_expand=user` ) . json ( ) ;
18
17
return (
19
18
< >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ import {Suspense} from 'react';
11
11
import Comments from './Comments' ;
12
12
13
13
// TODO: Replace with asset reference.
14
- import loadLink from './ Link.block ' ;
14
+ import Link from '../client/ Link' ;
15
15
16
16
export default function Post ( { post} ) {
17
- const Link = loadLink ( ) ;
18
17
return (
19
18
< div
20
19
style = { {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import ProfileTimeline from './ProfileTimeline';
13
13
import ProfileBio from './ProfileBio' ;
14
14
15
15
// TODO: Replace with asset reference.
16
- import loadProfileNav from './ ProfileNav.block ' ;
16
+ import ProfileNav from '../client/ ProfileNav' ;
17
17
18
18
// TODO: Router component?
19
19
const ProfileRoutes = {
@@ -23,7 +23,6 @@ const ProfileRoutes = {
23
23
24
24
export default function ProfilePage ( props ) {
25
25
const user = fetch ( `/users/${ props . userId } ` ) . json ( ) ;
26
- const ProfileNav = loadProfileNav ( ) ;
27
26
const match = matchRoute ( props , ProfileRoutes ) ;
28
27
return (
29
28
< >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments