Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Feb 19, 2021
1 parent 4535f24 commit e4c4fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('StepImageCaption', () => {
setStepNumber: jest.fn(),
stepNumber: 2,
timestamp: '2020-11-26T15:28:56.896Z',
isLoading: false,
};
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface StepImageCaptionProps {
setStepNumber: React.Dispatch<React.SetStateAction<number>>;
stepNumber: number;
timestamp: string;
isLoading?: boolean;
isLoading: boolean;
}

const ImageCaption = euiStyled.div`
Expand Down Expand Up @@ -47,7 +47,7 @@ export const StepImageCaption: React.FC<StepImageCaptionProps> = ({
<EuiButtonEmpty
disabled={stepNumber === 1}
onClick={() => {
setStepNumber((prevState) => prevState - 1);
setStepNumber(stepNumber - 1);
}}
iconType="arrowLeft"
aria-label={prevAriaLabel}
Expand All @@ -63,7 +63,7 @@ export const StepImageCaption: React.FC<StepImageCaptionProps> = ({
<EuiButtonEmpty
disabled={stepNumber === maxSteps}
onClick={() => {
setStepNumber((prevState) => prevState + 1);
setStepNumber(stepNumber + 1);
}}
iconType="arrowRight"
iconSide="right"
Expand Down

0 comments on commit e4c4fe1

Please sign in to comment.