Revert "Fix name typo"

This reverts commit d28adf8778.
pull/1364/head
ioedeveloper 3 years ago
parent d28adf8778
commit a7e94a92e1
  1. 6
      libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
  2. 2
      libs/remix-ui/settings/src/lib/settingsAction.ts

@ -4,7 +4,7 @@ import { CopyToClipboard } from '@remix-ui/clipboard' // eslint-disable-line
import { enablePersonalModeText, ethereunVMText, generateContractMetadataText, gitAccessTokenLink, gitAccessTokenText, gitAccessTokenText2, gitAccessTokenTitle, matomoAnalytics, textDark, textSecondary, warnText, wordWrapText } from './constants'
import './remix-ui-settings.css'
import { ethereumVM, generateContractMetadat, personal, textWrapEventAction, useMatomoAnalytics, saveTokenToast, removeTokenToast } from './settingsAction'
import { etherumVM, generateContractMetadat, personal, textWrapEventAction, useMatomoAnalytics, saveTokenToast, removeTokenToast } from './settingsAction'
import { initialState, toastInitialState, toastReducer, settingReducer } from './settingsReducer'
import { Toaster } from '@remix-ui/toaster'// eslint-disable-line
@ -41,7 +41,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
useEffect(() => {
const javascriptVM = props.config.get('settings/always-use-vm')
if ((javascriptVM === null) || (javascriptVM === undefined)) ethereumVM(props.config, true, dispatch)
if ((javascriptVM === null) || (javascriptVM === undefined)) etherumVM(props.config, true, dispatch)
}, [props.config])
const onchangeGenerateContractMetadata = (event) => {
@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
}
const onchangeOption = (event) => {
ethereumVM(props.config, event.target.checked, dispatch)
etherumVM(props.config, event.target.checked, dispatch)
}
const textWrapEvent = (event) => {

@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
dispatch({ type: 'contractMetadata', payload: { isChecked: checked, textClass: checked ? textDark : textSecondary } })
}
export const ethereumVM = (config, checked: boolean, dispatch) => {
export const etherumVM = (config, checked: boolean, dispatch) => {
config.set('settings/always-use-vm', checked)
dispatch({ type: 'ethereumVM', payload: { isChecked: checked, textClass: checked ? textDark : textSecondary } })
}

Loading…
Cancel
Save