chore: Remove the unreachable code block (#7000)
This commit is contained in:
parent
7ba60bdaff
commit
ceeb1ad16b
|
|
@ -62,14 +62,13 @@ const getCustomHoverColor = (
|
|||
.lighten(40)
|
||||
.toString()
|
||||
: theme.colors.button.primary.outline.hoverColor;
|
||||
break;
|
||||
|
||||
case ButtonVariantTypes.GHOST:
|
||||
return backgroundColor
|
||||
? tinycolor(backgroundColor)
|
||||
.lighten(40)
|
||||
.toString()
|
||||
: theme.colors.button.primary.ghost.hoverColor;
|
||||
break;
|
||||
|
||||
default:
|
||||
return backgroundColor
|
||||
|
|
@ -77,7 +76,6 @@ const getCustomHoverColor = (
|
|||
.darken(10)
|
||||
.toString()
|
||||
: theme.colors.button.primary.solid.hoverColor;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -84,14 +84,13 @@ const getCustomHoverColor = (
|
|||
.lighten(40)
|
||||
.toString()
|
||||
: theme.colors.button.primary.outline.hoverColor;
|
||||
break;
|
||||
|
||||
case ButtonVariantTypes.GHOST:
|
||||
return backgroundColor
|
||||
? tinycolor(backgroundColor)
|
||||
.lighten(40)
|
||||
.toString()
|
||||
: theme.colors.button.primary.ghost.hoverColor;
|
||||
break;
|
||||
|
||||
default:
|
||||
return backgroundColor
|
||||
|
|
@ -99,7 +98,6 @@ const getCustomHoverColor = (
|
|||
.darken(10)
|
||||
.toString()
|
||||
: theme.colors.button.primary.solid.hoverColor;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user