Skip to content

Commit

Permalink
PR Review-Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaniChinthala committed May 2, 2024
1 parent 1e12aa6 commit dbae7a1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/DetailsView/components/save-assessment-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export const SaveAssessmentButton = NamedFC<SaveAssessmentButtonProps>(
>
<Stack.Item grow disableShrink>
<Checkbox
checked={
!props.userConfigurationStoreData.showSaveAssessmentDialog
}
label="Don't show again"
onChange={handleDontShowAgainClick}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/common/components/visualization-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class VisualizationToggle extends React.Component<VisualizationToggleProp
componentRef: this.props.componentRef,
onBlur: this.props.onBlur,
onFocus: this.props.onFocus,
...{ 'data-automation-id': this.props['data-automation-id'] },
};
'data-automation-id': this.props['data-automation-id'],
} as IToggleProps;

return <Toggle {...props} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const CollapsibleUrlResultSection = NamedFC<CollapsibleUrlResultSectionPr
header: <ResultSectionTitle {...props} titleSize="heading" />,
content,
headingLevel: 3,
onExpandToggle: (event: React.MouseEvent<HTMLDivElement>) => {},
});

return <div className={styles.urlResultSection}>{CollapsibleContent}</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ReportCollapsibleContainerProps {
containerClassName?: string;
buttonAriaLabel?: string;
testKey?: string;
onExpandToggle: (event: React.MouseEvent<HTMLDivElement>) => void;
onExpandToggle?: (event: React.MouseEvent<HTMLDivElement>) => void;
}

const ReportCollapsibleContainer = NamedFC<ReportCollapsibleContainerProps>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ exports[`SaveAssessmentButton on dialog enabled render snapshot of dialog 1`] =
grow="true"
>
<mock-styledcheckboxbase
checked="false"
label="Don't show again"
/>
</mock-stackitem>
Expand Down

0 comments on commit dbae7a1

Please sign in to comment.