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
a7e94a92
Commit
a7e94a92
authored
Jul 07, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix name typo"
This reverts commit
d28adf87
.
parent
d28adf87
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 @
a7e94a92
...
@@ -4,7 +4,7 @@ import { CopyToClipboard } from '@remix-ui/clipboard' // eslint-disable-line
...
@@ -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
{
enablePersonalModeText
,
ethereunVMText
,
generateContractMetadataText
,
gitAccessTokenLink
,
gitAccessTokenText
,
gitAccessTokenText2
,
gitAccessTokenTitle
,
matomoAnalytics
,
textDark
,
textSecondary
,
warnText
,
wordWrapText
}
from
'./constants'
import
'./remix-ui-settings.css'
import
'./remix-ui-settings.css'
import
{
ether
e
umVM
,
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
{
initialState
,
toastInitialState
,
toastReducer
,
settingReducer
}
from
'./settingsReducer'
import
{
Toaster
}
from
'@remix-ui/toaster'
// eslint-disable-line
import
{
Toaster
}
from
'@remix-ui/toaster'
// eslint-disable-line
...
@@ -41,7 +41,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
...
@@ -41,7 +41,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
javascriptVM
=
props
.
config
.
get
(
'settings/always-use-vm'
)
const
javascriptVM
=
props
.
config
.
get
(
'settings/always-use-vm'
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
ether
e
umVM
(
props
.
config
,
true
,
dispatch
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
etherumVM
(
props
.
config
,
true
,
dispatch
)
},
[
props
.
config
])
},
[
props
.
config
])
const
onchangeGenerateContractMetadata
=
(
event
)
=>
{
const
onchangeGenerateContractMetadata
=
(
event
)
=>
{
...
@@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
...
@@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
}
}
const
onchangeOption
=
(
event
)
=>
{
const
onchangeOption
=
(
event
)
=>
{
ether
e
umVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
etherumVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
}
}
const
textWrapEvent
=
(
event
)
=>
{
const
textWrapEvent
=
(
event
)
=>
{
...
...
libs/remix-ui/settings/src/lib/settingsAction.ts
View file @
a7e94a92
...
@@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
...
@@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
dispatch
({
type
:
'contractMetadata'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
dispatch
({
type
:
'contractMetadata'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
}
export
const
ether
e
umVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
export
const
etherumVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
config
.
set
(
'settings/always-use-vm'
,
checked
)
config
.
set
(
'settings/always-use-vm'
,
checked
)
dispatch
({
type
:
'ethereumVM'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
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