Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d28adf87
Commit
d28adf87
authored
Jul 07, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix name typo
parent
8023efd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
remix-ui-settings.tsx
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
+3
-3
settingsAction.ts
libs/remix-ui/settings/src/lib/settingsAction.ts
+1
-1
No files found.
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
View file @
d28adf87
...
...
@@ -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
{
etherumVM
,
generateContractMetadat
,
personal
,
textWrapEventAction
,
useMatomoAnalytics
,
saveTokenToast
,
removeTokenToast
}
from
'./settingsAction'
import
{
ether
e
umVM
,
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
))
etherumVM
(
props
.
config
,
true
,
dispatch
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
ether
e
umVM
(
props
.
config
,
true
,
dispatch
)
},
[
props
.
config
])
const
onchangeGenerateContractMetadata
=
(
event
)
=>
{
...
...
@@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
}
const
onchangeOption
=
(
event
)
=>
{
etherumVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
ether
e
umVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
}
const
textWrapEvent
=
(
event
)
=>
{
...
...
libs/remix-ui/settings/src/lib/settingsAction.ts
View file @
d28adf87
...
...
@@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
dispatch
({
type
:
'contractMetadata'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
export
const
etherumVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
export
const
ether
e
umVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
config
.
set
(
'settings/always-use-vm'
,
checked
)
dispatch
({
type
:
'ethereumVM'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment