File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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+
2933export 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 } >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments