Skip to content

Commit 3e60ce6

Browse files
authored
Merge pull request #16 from dannyhp1/develop
Added reference to GitHub.
2 parents 0e62b68 + 635e778 commit 3e60ce6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/components/CodeEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class CodeEditor extends Component {
5151
width={this.state.editorWidth}
5252
value={this.props.source}
5353
onChange={this.onChange}
54+
showPrintMargin={false}
5455
editorProps={{ $blockScrolling: true }}
5556
setOptions={{
5657
showLineNumbers: true,

src/components/Header.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ const useStyles = makeStyles(theme => ({
2626
},
2727
}));
2828

29+
const redirectToSource = () => {
30+
window.location.assign('https://github.com/dannyhp1/coderpad')
31+
}
32+
2933
export default function Header() {
3034
const classes = useStyles()
3135

3236
return (
3337
<div className={classes.root}>
3438
<AppBar position='static' className={classes.bar}>
3539
<Toolbar>
36-
<IconButton edge='start' className={classes.menuButton} color='inherit' aria-label='menu'>
40+
<IconButton edge='start' className={classes.menuButton} color='inherit' aria-label='menu' onClick={redirectToSource}>
3741
<img className={classes.logo} src={logo} alt='Logo' />
3842
</IconButton>
3943
<Typography variant='h5' className={classes.title}>

src/components/ResultsEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ResultsEditor extends Component {
3636
value={this.props.logs}
3737
showGutter={false}
3838
editorProps={{ $blockScrolling: true }}
39+
showPrintMargin={false}
3940
cursorStart={0}
4041
showLineNumbers={false}
4142
readOnly={true}

0 commit comments

Comments
 (0)