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 {
51
51
width = { this . state . editorWidth }
52
52
value = { this . props . source }
53
53
onChange = { this . onChange }
54
+ showPrintMargin = { false }
54
55
editorProps = { { $blockScrolling : true } }
55
56
setOptions = { {
56
57
showLineNumbers : true ,
Original file line number Diff line number Diff line change @@ -26,14 +26,18 @@ const useStyles = makeStyles(theme => ({
26
26
} ,
27
27
} ) ) ;
28
28
29
+ const redirectToSource = ( ) => {
30
+ window . location . assign ( 'https://github.com/dannyhp1/coderpad' )
31
+ }
32
+
29
33
export default function Header ( ) {
30
34
const classes = useStyles ( )
31
35
32
36
return (
33
37
< div className = { classes . root } >
34
38
< AppBar position = 'static' className = { classes . bar } >
35
39
< 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 } >
37
41
< img className = { classes . logo } src = { logo } alt = 'Logo' />
38
42
</ IconButton >
39
43
< Typography variant = 'h5' className = { classes . title } >
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class ResultsEditor extends Component {
36
36
value = { this . props . logs }
37
37
showGutter = { false }
38
38
editorProps = { { $blockScrolling : true } }
39
+ showPrintMargin = { false }
39
40
cursorStart = { 0 }
40
41
showLineNumbers = { false }
41
42
readOnly = { true }
You can’t perform that action at this time.
0 commit comments