From 7bce238cef8f5ceaaae8a6e64f08ff46b7ed8ac0 Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Date: Fri, 6 Aug 2021 01:30:15 +0530 Subject: [PATCH] [FIX] Spelling of handle fixed --- .../src/components/Dashboard/SchematicCard.js | 2 +- .../src/components/SchematicEditor/Header.js | 8 +++---- .../SchematicEditor/SchematicToolbar.js | 22 +++++++++---------- eda-frontend/src/pages/Login.js | 2 +- eda-frontend/src/pages/signUp.js | 6 ++--- eda-frontend/src/redux/actions/actions.js | 8 +++---- .../actions/componentPropertiesActions.js | 2 +- 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/eda-frontend/src/components/Dashboard/SchematicCard.js b/eda-frontend/src/components/Dashboard/SchematicCard.js index 8bc22925e..c6bd37b33 100644 --- a/eda-frontend/src/components/Dashboard/SchematicCard.js +++ b/eda-frontend/src/components/Dashboard/SchematicCard.js @@ -81,7 +81,7 @@ function getDate (jsonDate) { export default function SchematicCard ({ sch }) { const classes = useStyles() - // To handel delete schematic snackbar + // To handle delete schematic snackbar const [snacOpen, setSnacOpen] = React.useState(false) const handleSnacClick = () => { diff --git a/eda-frontend/src/components/SchematicEditor/Header.js b/eda-frontend/src/components/SchematicEditor/Header.js index 173474dde..e99195433 100644 --- a/eda-frontend/src/components/SchematicEditor/Header.js +++ b/eda-frontend/src/components/SchematicEditor/Header.js @@ -161,7 +161,7 @@ function Header (props) { dispatch(setSchTitle(`${e.target.value}`)) } - // handel notification snackbar open and close with message + // handle notification snackbar open and close with message const [snacOpen, setSnacOpen] = React.useState(false) const [message, setMessage] = React.useState('') @@ -176,7 +176,7 @@ function Header (props) { setSnacOpen(false) } - // handel schematic Share Dialog box + // handle schematic Share Dialog box const [openShare, setShareOpen] = React.useState(false) const handleShareOpen = () => { @@ -219,7 +219,7 @@ function Header (props) { } } - // handel display format of last saved status + // handle display format of last saved status function getDate (jsonDate) { const json = jsonDate const date = new Date(json) @@ -228,7 +228,7 @@ function Header (props) { return `${day} ${month} ${hour}:${minute}:${second}` } - // handel Copy Share Url + // handle Copy Share Url const textAreaRef = React.useRef(null) function copyToClipboard (e) { diff --git a/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js b/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js index f9582e9a8..7ab7abb65 100644 --- a/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js +++ b/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js @@ -187,13 +187,13 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { setHelpOpen(false) } - // Handel Delete component + // handle Delete component const handleDeleteComp = () => { DeleteComp() dispatch(closeCompProperties()) } - // Handel Notification Snackbar + // handle Notification Snackbar const [snacOpen, setSnacOpen] = React.useState(false) const [message, setMessage] = React.useState('') @@ -324,8 +324,8 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { } } - // Handel Save Schematic onCloud - const handelSchSave = () => { + // handle Save Schematic onCloud + const handleSchSave = () => { if (auth.isAuthenticated !== true) { setMessage('You are not Logged In') handleSnacClick() @@ -361,7 +361,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { } // Save Schematics Locally - const handelLocalSchSave = () => { + const handleLocalSchSave = () => { const saveLocalData = {} saveLocalData.data_dump = Save() saveLocalData.title = schSave.title @@ -382,7 +382,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { } // Open Locally Saved Schematic - const handelLocalSchOpen = () => { + const handleLocalSchOpen = () => { let obj = {} const fileSelector = document.createElement('input') fileSelector.setAttribute('type', 'file') @@ -458,7 +458,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { // Save - Ctrl + S if (event.ctrlKey && event.keyCode === 83) { event.preventDefault() - handelSchSave() + handleSchSave() } // Print - Ctrl + P if (event.ctrlKey && event.keyCode === 80) { @@ -476,7 +476,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { if (event.shiftKey) { handleImgClickOpen() } else { - handelLocalSchSave() + handleLocalSchSave() } } } @@ -514,16 +514,16 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { - + - + | - + diff --git a/eda-frontend/src/pages/Login.js b/eda-frontend/src/pages/Login.js index b4d925c8e..ff0061a82 100644 --- a/eda-frontend/src/pages/Login.js +++ b/eda-frontend/src/pages/Login.js @@ -168,7 +168,7 @@ export default function SignIn (props) { onClick={handleClickShowPassword} onMouseDown={handleMouseDownPassword} > - {showPassword ? : } {/* Handel password visibility */} + {showPassword ? : } {/* handle password visibility */} diff --git a/eda-frontend/src/pages/signUp.js b/eda-frontend/src/pages/signUp.js index 8ec8f3f9f..c5e6e219e 100644 --- a/eda-frontend/src/pages/signUp.js +++ b/eda-frontend/src/pages/signUp.js @@ -68,7 +68,7 @@ export default function SignUp () { const handleMouseDownPassword = () => setShowPassword(!showPassword) // Function call for google oAuth sign up. - const handelGoogleSignup = () => { + const handleGoogleSignup = () => { var host = window.location.protocol + '//' + window.location.host dispatch(googleLogin(host)) } @@ -146,7 +146,7 @@ export default function SignUp () { onClick={handleClickShowPassword} onMouseDown={handleMouseDownPassword} > - {showPassword ? : } {/* Handel password visibility */} + {showPassword ? : } {/* handle password visibility */} ) @@ -178,7 +178,7 @@ export default function SignUp () { fullWidth variant="outlined" color="primary" - onClick={handelGoogleSignup} + onClick={handleGoogleSignup} className={classes.submit} > G  Sign Up With Google diff --git a/eda-frontend/src/redux/actions/actions.js b/eda-frontend/src/redux/actions/actions.js index 9a42bff98..25f09b8d8 100644 --- a/eda-frontend/src/redux/actions/actions.js +++ b/eda-frontend/src/redux/actions/actions.js @@ -11,25 +11,25 @@ export const TOGGLE_COLLAPSE = 'TOGGLE_COLLAPSE' export const FETCH_COMPONENTS = 'FETCH_COMPONENTS' export const TOGGLE_SIMULATE = 'TOGGLE_SIMULATE' -// Actions for handeling component properties +// Actions for handleing component properties export const GET_COMP_PROPERTIES = 'GET_COMP_PROPERTIES' export const SET_COMP_PROPERTIES = 'SET_COMP_PROPERTIES' export const CLOSE_COMP_PROPERTIES = 'CLOSE_COMP_PROPERTIES' export const CLOSE_COMP_PROPERTIES_TEMP = 'CLOSE_COMP_PROPERTIES_TEMP' -// Actions for handeling and generating netlist +// Actions for handleing and generating netlist export const SET_NETLIST = 'SET_NETLIST' export const SET_TITLE = 'SET_TITLE' export const SET_MODEL = 'SET_MODEL' export const SET_CONTROL_LINE = 'SET_CONTROL_LINE' export const SET_CONTROL_BLOCK = 'SET_CONTROL_BLOCK' -// Actions for handeling simualtion result display +// Actions for handleing simualtion result display export const SET_RESULT_TITLE = 'SET_RESULT_TITLE' export const SET_RESULT_GRAPH = 'SET_RESULT_GRAPH' export const SET_RESULT_TEXT = 'SET_RESULT_TEXT' -// Actions for handeling user authentication and registeration +// Actions for handleing user authentication and registeration export const USER_LOADING = 'USER_LOADING' export const USER_LOADED = 'USER_LOADED' export const LOGIN_SUCCESSFUL = 'LOGIN_SUCCESSFUL' diff --git a/eda-frontend/src/redux/actions/componentPropertiesActions.js b/eda-frontend/src/redux/actions/componentPropertiesActions.js index 13d75fffe..b96c240d2 100644 --- a/eda-frontend/src/redux/actions/componentPropertiesActions.js +++ b/eda-frontend/src/redux/actions/componentPropertiesActions.js @@ -24,7 +24,7 @@ export const setCompProperties = (id, compProperties) => (dispatch) => { }) } -// Handeling hiding of component properties sidebar +// handleing hiding of component properties sidebar export const closeCompProperties = () => (dispatch) => { dispatch({ type: actions.CLOSE_COMP_PROPERTIES