This repository was archived by the owner on Feb 25, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,16 @@ export default class Base extends React.Component {
9
9
Icon . loadSprite ( )
10
10
}
11
11
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
+ }
13
19
return (
14
20
< div className = { className } >
15
- < GitHubCorner url = 'https://github.com/netlify-labs/functions-site' />
21
+ { corner }
16
22
{ children }
17
23
</ div >
18
24
)
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import Sidebar from '../../fragments/Sidebar'
7
7
8
8
export default class MainLayout extends React . Component {
9
9
render ( ) {
10
- const { children, sidebar } = this . props
10
+ const { children, sidebar, noIcon } = this . props
11
11
return (
12
- < Base className = { styles . test } >
12
+ < Base className = { styles . test } noIcon = { noIcon } >
13
13
< Helmet >
14
14
< meta name = "description" content = { config . siteDescription } />
15
15
</ Helmet >
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ export default class Admin extends React.Component {
216
216
)
217
217
}
218
218
return (
219
- < Base className = { styles . adminWrapper } >
219
+ < Base className = { styles . adminWrapper } noIcon >
220
220
< h1 >
221
221
{ 'Add a function example' }
222
222
< Icon
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default class Admin extends React.Component {
193
193
)
194
194
}
195
195
return (
196
- < Base className = { styles . adminWrapper } >
196
+ < Base className = { styles . adminWrapper } noIcon >
197
197
< h1 >
198
198
{ 'Add a function tutorial' }
199
199
< Icon
You can’t perform that action at this time.
0 commit comments