Skip to content

Commit 4b57cd4

Browse files
committed
changed tutorial page home to close
1 parent 8ff48f3 commit 4b57cd4

File tree

2 files changed

+39
-38
lines changed

2 files changed

+39
-38
lines changed

app/src/containers/CustomizationPanel.tsx

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -755,41 +755,41 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
755755
{ value: 'onKeyDown', text: 'onKeyDown' }
756756
]}
757757
/>
758+
</div>
759+
{ eventAll[0] && (<div className={classes.configRow}>
760+
<div
761+
className={
762+
isThemeLight
763+
? `${classes.configType} ${classes.lightThemeFontColor}`
764+
: `${classes.configType} ${classes.darkThemeFontColor}`
765+
}
766+
>
767+
<h3>Function Name:</h3>
758768
</div>
759-
{ eventAll[0] && (<div className={classes.configRow}>
760-
<div
761-
className={
762-
isThemeLight
763-
? `${classes.configType} ${classes.lightThemeFontColor}`
764-
: `${classes.configType} ${classes.darkThemeFontColor}`
765-
}
766-
>
767-
<h3>Function Name:</h3>
768-
</div>
769-
<FormControl variant="filled">
770-
<TextField
771-
variant="filled"
772-
name="funcName"
773-
inputProps={{
774-
className: isThemeLight
775-
? `${classes.selectInput} ${classes.lightThemeFontColor}`
776-
: `${classes.selectInput} ${classes.darkThemeFontColor}`
777-
}}
778-
value={eventAll[1]}
779-
onChange={handleChange}
780-
placeholder="Function Name"
781-
/>
782-
</FormControl>
783-
</div> )}
784-
{ currFocus && Object.keys(currFocus.events).length !== 0 && (<div className={'event-table'}>
785-
<DataGrid
786-
rows={eventRow}
787-
columns={eventColumnTabs}
788-
pageSize={5}
789-
// editRowsModel={editRowsModel}
790-
// className={props.isThemeLight ? classes.themeLight : classes.themeDark}
769+
<FormControl variant="filled">
770+
<TextField
771+
variant="filled"
772+
name="funcName"
773+
inputProps={{
774+
className: isThemeLight
775+
? `${classes.selectInput} ${classes.lightThemeFontColor}`
776+
: `${classes.selectInput} ${classes.darkThemeFontColor}`
777+
}}
778+
value={eventAll[1]}
779+
onChange={handleChange}
780+
placeholder="Function Name"
791781
/>
792-
</div>)}
782+
</FormControl>
783+
</div> )}
784+
{ currFocus && Object.keys(currFocus.events).length !== 0 && (<div className={'event-table'}>
785+
<DataGrid
786+
rows={eventRow}
787+
columns={eventColumnTabs}
788+
pageSize={5}
789+
// editRowsModel={editRowsModel}
790+
// className={props.isThemeLight ? classes.themeLight : classes.themeDark}
791+
/>
792+
</div>)}
793793
{/* <TableContainer component={Paper} sx={{ maxHeight: '350px' }}>
794794
<Table
795795
sx={{ width: '510px' }}

app/src/tutorial/Tutorial.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import ColorLensIcon from '@material-ui/icons/ColorLens';
2020
import SwapVertIcon from '@material-ui/icons/SwapVert';
2121
import KeyboardIcon from '@material-ui/icons/Keyboard';
2222
import BrushIcon from '@material-ui/icons/Brush';
23-
import HomeIcon from '@material-ui/icons/Home';
23+
import CloseIcon from '@material-ui/icons/Close';
2424
import Button from '@material-ui/core/Button';
2525

2626

@@ -142,18 +142,19 @@ const Tutorial: React.FC<RouteComponentProps> = () => {
142142
return (
143143
<>
144144
<div>
145-
<Link to='/' style={{textDecoration: 'none'}}>
145+
{/* <Link to='/' style={{textDecoration: 'none'}}> */}
146146
<Button
147147
variant='contained'
148148
color='primary'
149149
style={{ minWidth: '137.69px'}}
150150
className="navbarButton"
151151
id="ratingButton"
152-
endIcon={<HomeIcon/>}
152+
onClick={window.close}
153+
endIcon={<CloseIcon/>}
153154
>
154-
HOME
155+
Close
155156
</Button>
156-
</Link>
157+
{/* </Link> */}
157158
</div>
158159
<Container maxWidth="xl" className={classes.container}>
159160
<h1 className={classes.pageTitle}>ReacType Tutorial</h1>

0 commit comments

Comments
 (0)