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