|
|
|
@ -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) => { |
|
|
|
|