Commit 55cb5982 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #1468 from blockscout/fe-1462

solidity scan report changes
parents 92073ca4 a47828bf
......@@ -84,6 +84,10 @@ const SolidityscanReport = ({ className, hash }: Props) => {
const yetAnotherGrayColor = useColorModeValue('gray.400', 'gray.500');
const popoverBgColor = useColorModeValue('white', 'gray.900');
const greatScoreColor = useColorModeValue('green.600', 'green.400');
const averageScoreColor = useColorModeValue('purple.600', 'purple.400');
const lowScoreColor = useColorModeValue('red.600', 'red.400');
if (isError || !score) {
return null;
}
......@@ -91,13 +95,13 @@ const SolidityscanReport = ({ className, hash }: Props) => {
let scoreColor;
let scoreLevel;
if (score >= 80) {
scoreColor = 'green.600';
scoreColor = greatScoreColor;
scoreLevel = 'GREAT';
} else if (score >= 30) {
scoreColor = 'orange.600';
scoreColor = averageScoreColor;
scoreLevel = 'AVERAGE';
} else {
scoreColor = 'red.600';
scoreColor = lowScoreColor;
scoreLevel = 'LOW';
}
......@@ -112,7 +116,6 @@ const SolidityscanReport = ({ className, hash }: Props) => {
<Button
className={ className }
color={ scoreColor }
borderColor={ scoreColor }
size="sm"
variant="outline"
colorScheme="gray"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment