Shared: MainButtonMobile: fix progress style

This commit is contained in:
Viktor Fomin 2024-06-10 20:13:18 +05:00
parent 51b97d112a
commit 01816c6bdc

View File

@ -406,15 +406,12 @@ export {
const getDefaultProgressStyles = ({
$currentColorScheme,
theme,
error,
}: ProgressBarMobileDefaultStyles) =>
$currentColorScheme &&
css`
background: ${error
? theme.mainButtonMobile.bar.errorBackground
: theme.isBase
? $currentColorScheme?.main?.accent
: "#FFFFFF"};
background: ${
theme.isBase ? $currentColorScheme?.main?.accent : "#FFFFFF"
}};
`;
const StyledProgressBarTheme = styled(StyledBar)(getDefaultProgressStyles);