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
5f74c949
Commit
5f74c949
authored
Jun 18, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show slither checkbox only for localhost workspace
parent
bc6ef254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
remix-ui-checkbox.tsx
libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx
+4
-2
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+2
-0
No files found.
libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx
View file @
5f74c949
...
...
@@ -12,6 +12,7 @@ export interface RemixUiCheckboxProps {
id
?:
string
itemName
?:
string
categoryId
?:
string
visibility
?:
string
}
export
const
RemixUiCheckbox
=
({
...
...
@@ -23,10 +24,11 @@ export const RemixUiCheckbox = ({
checked
,
onChange
,
itemName
,
categoryId
categoryId
,
visibility
}:
RemixUiCheckboxProps
)
=>
{
return
(
<
div
className=
"listenOnNetwork_2A0YE0 custom-control custom-checkbox"
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
onClick=
{
onClick
}
>
<
div
className=
"listenOnNetwork_2A0YE0 custom-control custom-checkbox"
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
,
visibility
:
`${visibility}`
}
}
onClick=
{
onClick
}
>
<
input
id=
{
id
}
type=
{
inputType
}
...
...
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
5f74c949
...
...
@@ -56,6 +56,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
const
[
autoRun
,
setAutoRun
]
=
useState
(
true
)
const
[
slitherEnabled
,
setSlitherEnabled
]
=
useState
(
false
)
const
[
showSlither
,
setShowSlither
]
=
useState
(
'hidden'
)
const
[
categoryIndex
,
setCategoryIndex
]
=
useState
(
groupedModuleIndex
(
groupedModules
))
const
warningContainer
=
React
.
useRef
(
null
)
...
...
@@ -341,6 +342,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
checked=
{
slitherEnabled
}
label=
"Enable Slither Analysis"
onChange=
{
()
=>
{}
}
visibility
=
{
showSlither
}
/>
</
div
>
</
div
>
...
...
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