Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit 6f3e9de

Browse files
committed
mobile
1 parent 1b01df3 commit 6f3e9de

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

src/layouts/Base/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ export default class Base extends React.Component {
99
Icon.loadSprite()
1010
}
1111
render() {
12-
const { children, className } = this.props
12+
const { children, className, noIcon } = this.props
13+
let corner
14+
if (noIcon) {
15+
corner = null
16+
} else {
17+
corner = <GitHubCorner url='https://github.com/netlify-labs/functions-site' />
18+
}
1319
return (
1420
<div className={className}>
15-
<GitHubCorner url='https://github.com/netlify-labs/functions-site' />
21+
{corner}
1622
{children}
1723
</div>
1824
)

src/layouts/Default/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import Sidebar from '../../fragments/Sidebar'
77

88
export default class MainLayout extends React.Component {
99
render() {
10-
const { children, sidebar } = this.props
10+
const { children, sidebar, noIcon } = this.props
1111
return (
12-
<Base className={styles.test}>
12+
<Base className={styles.test} noIcon={noIcon}>
1313
<Helmet>
1414
<meta name="description" content={config.siteDescription} />
1515
</Helmet>

src/pages/admin/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export default class Admin extends React.Component {
216216
)
217217
}
218218
return (
219-
<Base className={styles.adminWrapper}>
219+
<Base className={styles.adminWrapper} noIcon>
220220
<h1>
221221
{'Add a function example'}
222222
<Icon

src/pages/admin/tutorials/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default class Admin extends React.Component {
193193
)
194194
}
195195
return (
196-
<Base className={styles.adminWrapper}>
196+
<Base className={styles.adminWrapper} noIcon>
197197
<h1>
198198
{'Add a function tutorial'}
199199
<Icon

0 commit comments

Comments
 (0)