-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import { DefaultNextApp } from '../src/nextjs/makeNextApp'; | ||
import React from 'react'; | ||
|
||
export default DefaultNextApp; | ||
import makeNextApp from '../src/nextjs/makeNextApp'; | ||
|
||
const Layout = (props) => { | ||
return ( | ||
<div> | ||
[Layout] | ||
<div> | ||
{props.children} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default makeNextApp(null, Layout); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import React from 'react'; | ||
import Button from '@material-ui/core/Button'; | ||
import { defaultParts } from '../src/mui/withParts'; | ||
import Link from 'next/link'; | ||
|
||
const Page1 = () => ( | ||
<Button color="primary"> | ||
Hello World | ||
</Button> | ||
const Index = () => ( | ||
<div> | ||
<Button color="primary">Hello World</Button> | ||
<Link href="/page1"> | ||
<Button>To Page1</Button> | ||
</Link> | ||
</div> | ||
); | ||
|
||
export default defaultParts(Page1); | ||
export default Index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import Button from '@material-ui/core/Button'; | ||
import Link from 'next/link'; | ||
|
||
const Index = () => ( | ||
<div> | ||
Page1 contentsssssssssssssss... | ||
<Link href="/"> | ||
<Button>To Top</Button> | ||
</Link> | ||
</div> | ||
); | ||
|
||
export default Index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters