CB-3265 remove select effect for update version Cell (#1626)

This commit is contained in:
alex
2023-04-24 20:30:32 +03:00
committed by GitHub
parent 6831eb0523
commit 05ab5b4512
2 changed files with 18 additions and 5 deletions
+17 -5
View File
@@ -17,13 +17,11 @@ interface Props {
before?: React.ReactElement;
after?: React.ReactElement;
style?: ComponentStyle;
ripple?: boolean;
className?: string;
}
const styles = css`
cell {
composes: theme-ripple from global;
}
main {
position: relative;
display: flex;
@@ -54,8 +52,22 @@ const styles = css`
}
`;
export const Cell: React.FC<React.PropsWithChildren<Props>> = function Cell({ before, after, description, style, className, children }) {
return styled(useStyles(styles, style))(
const RIPPLE_STYLES = css`
cell {
composes: theme-ripple from global;
}
`;
export const Cell: React.FC<React.PropsWithChildren<Props>> = function Cell({
before,
after,
description,
style,
className,
ripple = true,
children,
}) {
return styled(useStyles(styles, style, ripple && RIPPLE_STYLES))(
<cell className={className}>
<main>
<before>{before}</before>
@@ -38,6 +38,7 @@ export const VersionChecker = observer(function VersionChecker() {
before={<IconOrImage icon={icon} />}
description={versionUpdateService.newVersionAvailable ? description : undefined}
style={style}
ripple={false}
>
{translate(text)}
</Cell>