Skip to content

Commit 1794dfd

Browse files
committed
changed cursor pointer for bubble logic
1 parent 21af835 commit 1794dfd

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/bubble/bubble.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ const Bubble: FC<IBubbleProps> = (props) => {
1212
index,
1313
currentStepIndex,
1414
handleStepClick = null,
15+
showCursor,
1516
getStyles
1617
} = props;
1718

1819
return (
1920
<div
2021
className={`${styles.eachBubble}
21-
${handleStepClick && styles.cursorPointer}
22+
${showCursor && styles.cursorPointer}
2223
${index === currentStepIndex && styles.activeStepBubble}
2324
${step.status === STEP_STATUSES.UNVISITED && currentStepIndex !== index && styles.inactiveStepBubble}
2425
`}

src/bubble/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export type IBubbleProps = {
88
index: number,
99
currentStepIndex?: number,
1010
handleStepClick(): void,
11+
showCursor: boolean,
1112
getStyles(element: Elements): object
1213
}

src/stepper-component/stepperComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const Stepper: FC<IStepperProps> = (props) => {
3232
index={stepIndex}
3333
currentStepIndex= {currentStepIndex}
3434
handleStepClick={(): void => onStepClick && onStepClick(step, stepIndex)}
35+
showCursor={!!onStepClick}
3536
renderAdornment={renderBubble}
3637
getStyles={(element: Elements): object => getStyles(element, step, stepIndex)}
3738
/>

0 commit comments

Comments
 (0)