Skip to content

Commit

Permalink
auto lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Nov 17, 2023
1 parent 3d93d96 commit 67a5010
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 11 deletions.
1 change: 1 addition & 0 deletions libs/core-ui/src/lib/Cohort/CohortList/CohortListPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

import { IFocusTrapZoneProps, Panel } from "@fluentui/react";
import { localization } from "@responsible-ai/localization";
import React from "react";

import { ErrorCohort } from "../ErrorCohort";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,14 @@ export class AggregateBalanceMeasuresTable extends React.PureComponent<IAggregat
selectionMode={SelectionMode.none}
layoutMode={DetailsListLayoutMode.justified}
checkboxVisibility={CheckboxVisibility.hidden}
ariaLabelForSelectAllCheckbox={localization.ModelAssessment.ModelOverview.featureConfiguration.selectAllRowsAriaLabel}
ariaLabel={localization.ModelAssessment.ModelOverview.featureConfiguration.flyoutAriaLabel}
ariaLabelForSelectAllCheckbox={
localization.ModelAssessment.ModelOverview.featureConfiguration
.selectAllRowsAriaLabel
}
ariaLabel={
localization.ModelAssessment.ModelOverview.featureConfiguration
.flyoutAriaLabel
}
/>
</Stack.Item>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,20 @@ export class CohortToolBar extends React.Component<
<PrimaryButton
onClick={this.addCohortWrapper(true)}
text={localization.InterpretVision.Cohort.saveAndSwitch}
ariaLabel={this.state.errorMessage ? this.state.errorMessage : undefined}
ariaLabel={
this.state.errorMessage
? this.state.errorMessage
: undefined
}
/>
<DefaultButton
onClick={this.addCohortWrapper(false)}
text={localization.InterpretVision.Cohort.saveAndClose}
ariaLabel={this.state.errorMessage ? this.state.errorMessage : undefined}
ariaLabel={
this.state.errorMessage
? this.state.errorMessage
: undefined
}
/>
</DialogFooter>
</Stack.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ export class TableList extends React.Component<
selection={this._selection}
setKey="set"
onItemInvoked={this.props.selectItem}
ariaLabel={localization.InterpretVision.Dashboard.tableListAriaLabel}
ariaLabel={
localization.InterpretVision.Dashboard.tableListAriaLabel
}
/>
</MarqueeSelection>
</Stack.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export class VisionExplanationDashboardCommon extends React.Component<
min={20}
id="dataExplorerThumbnailSize"
className={this.props.classNames.slider}
ariaLabel={localization.InterpretVision.Dashboard.thumbnailSizeAriaLabel}
ariaLabel={
localization.InterpretVision.Dashboard.thumbnailSizeAriaLabel
}
label={localization.InterpretVision.Dashboard.thumbnailSize}
defaultValue={50}
showValue={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,14 @@ export class FeatureConfigurationFlyout extends React.Component<
selectionMode={SelectionMode.multiple}
selection={this._selection}
checkboxVisibility={CheckboxVisibility.always}
ariaLabelForSelectAllCheckbox={localization.ModelAssessment.ModelOverview.featureConfiguration.selectAllRowsAriaLabel}
ariaLabel={localization.ModelAssessment.ModelOverview.featureConfiguration.featureSelectionAriaLabel}
ariaLabelForSelectAllCheckbox={
localization.ModelAssessment.ModelOverview.featureConfiguration
.selectAllRowsAriaLabel
}
ariaLabel={
localization.ModelAssessment.ModelOverview.featureConfiguration
.featureSelectionAriaLabel
}
/>
</Stack>
</Panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,14 @@ export class MetricConfigurationFlyout extends React.Component<
selectionMode={SelectionMode.multiple}
selection={this._selection}
checkboxVisibility={CheckboxVisibility.always}
ariaLabelForSelectAllCheckbox={localization.ModelAssessment.ModelOverview.featureConfiguration.selectAllRowsAriaLabel}
ariaLabel={localization.ModelAssessment.ModelOverview.featureConfiguration.metricSelectionAriaLabel}
ariaLabelForSelectAllCheckbox={
localization.ModelAssessment.ModelOverview.featureConfiguration
.selectAllRowsAriaLabel
}
ariaLabel={
localization.ModelAssessment.ModelOverview.featureConfiguration
.metricSelectionAriaLabel
}
/>
</Stack>
</Panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export class ObjectDetectionWidgets extends React.PureComponent<IObjectDetection
/>
<Slider
id="modelOverviewIoUThreshold"
ariaLabel={localization.ModelAssessment.ModelOverview.iouThresholdDropdown.AriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview.iouThresholdDropdown
.AriaLabel
}
label={
localization.ModelAssessment.ModelOverview.iouThresholdDropdown.name
}
Expand Down

0 comments on commit 67a5010

Please sign in to comment.