chore: rename functions to make more sense

This commit is contained in:
Christian Andolf
2025-05-09 09:57:55 +02:00
parent 485fddfa3d
commit 2b32a9c1ff

View File

@@ -87,7 +87,7 @@ export default function DigitalTeamMemberCardContent({
}
}
function renderShimmer(): CSSProperties {
function getShimmerStyle(): CSSProperties {
const { x, y } = coords
const oppositeX = 100 - (x / rect.width) * 100
const oppositeY = 100 - (y / rect.height) * 100
@@ -97,7 +97,7 @@ export default function DigitalTeamMemberCardContent({
}
}
function renderSkew(): CSSProperties {
function getSkewStyle(): CSSProperties {
const { x, y } = coords
const centerX = rect.width / 2
const centerY = rect.height / 2
@@ -130,8 +130,8 @@ export default function DigitalTeamMemberCardContent({
onTouchMove={onInteractionMove}
onTouchEnd={handleInteractionEnd}
>
<div className={styles.card} ref={cardRef} style={renderSkew()}>
<div className={styles.shimmer} style={renderShimmer()} />
<div className={styles.card} ref={cardRef} style={getSkewStyle()}>
<div className={styles.shimmer} style={getShimmerStyle()} />
<div className={styles.content}>
<Typography variant="Tag/sm">
<div className={styles.top}>