Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
4a7ca48c
Commit
4a7ca48c
authored
Apr 15, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tooltip for security score on app page
parent
5b1871cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
AppSecurityReport.tsx
ui/marketplace/AppSecurityReport.tsx
+1
-0
SolidityscanReportButton.tsx
ui/shared/solidityscanReport/SolidityscanReportButton.tsx
+3
-2
No files found.
ui/marketplace/AppSecurityReport.tsx
View file @
4a7ca48c
...
@@ -54,6 +54,7 @@ const AppSecurityReport = ({ id, securityReport, height, showContractList, isLoa
...
@@ -54,6 +54,7 @@ const AppSecurityReport = ({ id, securityReport, height, showContractList, isLoa
onClick=
{
handleButtonClick
}
onClick=
{
handleButtonClick
}
height=
{
height
}
height=
{
height
}
onlyIcon=
{
onlyIcon
}
onlyIcon=
{
onlyIcon
}
label=
"The security score is based on analysis of a DApp's smart contracts."
/>
/>
</
PopoverTrigger
>
</
PopoverTrigger
>
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
328px
'
}
}
>
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
328px
'
}
}
>
...
...
ui/shared/solidityscanReport/SolidityscanReportButton.tsx
View file @
4a7ca48c
...
@@ -13,16 +13,17 @@ interface Props {
...
@@ -13,16 +13,17 @@ interface Props {
height
?:
string
;
height
?:
string
;
onlyIcon
?:
boolean
;
onlyIcon
?:
boolean
;
onClick
?:
()
=>
void
;
onClick
?:
()
=>
void
;
label
?:
string
;
}
}
const
SolidityscanReportButton
=
(
const
SolidityscanReportButton
=
(
{
className
,
score
,
isLoading
,
height
=
'
32px
'
,
onlyIcon
,
onClick
}:
Props
,
{
className
,
score
,
isLoading
,
height
=
'
32px
'
,
onlyIcon
,
onClick
,
label
=
'
Security score
'
}:
Props
,
ref
:
React
.
ForwardedRef
<
HTMLButtonElement
>
,
ref
:
React
.
ForwardedRef
<
HTMLButtonElement
>
,
)
=>
{
)
=>
{
const
{
scoreColor
}
=
useScoreLevelAndColor
(
score
);
const
{
scoreColor
}
=
useScoreLevelAndColor
(
score
);
return
(
return
(
<
PopoverTriggerTooltip
label=
"Security score"
isLoading=
{
isLoading
}
className=
{
className
}
>
<
PopoverTriggerTooltip
label=
{
label
}
isLoading=
{
isLoading
}
className=
{
className
}
>
<
Button
<
Button
ref=
{
ref
}
ref=
{
ref
}
color=
{
scoreColor
}
color=
{
scoreColor
}
...
...
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