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 5e099a7 commit 238015d
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 22 deletions.
4 changes: 3 additions & 1 deletion libs/core-ui/src/lib/Cohort/EditCohort/EditCohort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ export class EditCohort extends React.Component<
<DefaultButton
onClick={this.props.onDismiss}
text={localization.Interpret.CohortEditor.cancel}
ariaLabel={localization.Interpret.CohortEditor.cancelAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.cancelAriaLabel
}
/>
</Stack>
</Stack.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ export class CohortEditorFilter extends React.Component<ICohortEditorFilterProps
<DefaultButton
text={localization.Interpret.CohortEditor.cancel}
onClick={(): void => this.props.cancelFilter()}
ariaLabel={localization.Interpret.CohortEditor.cancelAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.cancelAriaLabel
}
/>
</Stack.Item>
</>
Expand All @@ -170,7 +172,9 @@ export class CohortEditorFilter extends React.Component<ICohortEditorFilterProps
<PrimaryButton
text={localization.Interpret.CohortEditor.addFilter}
onClick={this.onAddFilterClick}
ariaLabel={localization.Interpret.CohortEditor.addFilterAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.addFilterAriaLabel
}
/>
</Stack.Item>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export class CohortList extends React.PureComponent<ICohortListProps> {
text={localization.Interpret.CohortBanner.editCohort}
iconProps={{ iconName: "Edit" }}
styles={{ label: { whiteSpace: "nowrap" } }}
ariaLabel={localization.Interpret.CohortBanner.editCohortAriaLabel}
ariaLabel={
localization.Interpret.CohortBanner.editCohortAriaLabel
}
/>
</Stack>
</Stack.Item>
Expand Down
4 changes: 3 additions & 1 deletion libs/core-ui/src/lib/Cohort/SaveCohort/SaveCohort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export class SaveCohort extends React.Component<
this.props.onDismiss();
this.saveCohort(true);
}}
ariaLabel={localization.Interpret.CohortEditor.saveAndSwitchAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.saveAndSwitchAriaLabel
}
>
{localization.Interpret.CohortEditor.saveAndSwitch}
</DefaultButton>
Expand Down
8 changes: 6 additions & 2 deletions libs/core-ui/src/lib/components/ConfirmationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ export class ConfirmationDialog extends React.Component<IConfirmationDialogProps
<PrimaryButton
onClick={this.props.onConfirm}
text={this.props.confirmButtonText}
ariaLabel={localization.Interpret.CohortEditor.confirmButtonAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.confirmButtonAriaLabel
}
/>
<DefaultButton
onClick={this.props.onClose}
text={this.props.cancelButtonText}
ariaLabel={localization.Interpret.CohortEditor.cancelButtonAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.cancelButtonAriaLabel
}
/>
</DialogFooter>
</Dialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@ export class CohortToolBar extends React.Component<
<PrimaryButton
onClick={this.addCohortWrapper(true)}
text={localization.InterpretVision.Cohort.saveAndSwitch}
ariaLabel={localization.Interpret.CohortEditor.saveAndSwitchAriaLabel}
ariaLabel={
localization.Interpret.CohortEditor.saveAndSwitchAriaLabel
}
/>
<DefaultButton
onClick={this.addCohortWrapper(false)}
text={localization.InterpretVision.Cohort.saveAndClose}
ariaLabel={localization.InterpretVision.Cohort.saveAndCloseAriaLabel}
ariaLabel={
localization.InterpretVision.Cohort.saveAndCloseAriaLabel
}
/>
</DialogFooter>
</Stack.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export class AddTabButton extends React.Component<
<PrimaryButton
onClick={this.addTab}
text={localization.ModelAssessment.AddingTab.AddButtonText}
ariaLabel={localization.ModelAssessment.AddingTab.AddButtonTextAriaLabel}
ariaLabel={
localization.ModelAssessment.AddingTab
.AddButtonTextAriaLabel
}
/>
</Stack>
</Callout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,17 @@ export class ChartConfigurationFlyout extends React.Component<
this.state.newlySelectedDatasetCohorts,
this.state.newlySelectedFeatureBasedCohorts
)}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={this.onDismiss}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,18 @@ export class FeatureConfigurationFlyout extends React.Component<
tooManyFeaturesSelected ||
(!featureSelectionChanged && !continuousFeatureBinningChanged)
}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={this.props.onDismissFlyout}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,18 @@ export class MetricConfigurationFlyout extends React.Component<
onClick={this.onConfirm}
text={localization.ModelAssessment.ModelOverview.chartConfigApply}
disabled={noMetricsSelected}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={this.props.onDismissFlyout}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,19 @@ export class ModelOverviewMetricChart extends React.Component<
this.props.onApplyMetric(this.state.newlySelectedMetric);
}}
text={localization.ModelAssessment.ModelOverview.chartConfigApply}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={(): void => {
this.setState({ metricSelectionFlyoutIsVisible: false });
}}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,19 @@ export class ProbabilityDistributionChart extends React.Component<
}
}}
text={localization.ModelAssessment.ModelOverview.chartConfigApply}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={(): void => {
this.setState({ probabilityFlyoutIsVisible: false });
}}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,19 @@ export class RegressionDistributionChart extends React.Component<
}
}}
text={localization.ModelAssessment.ModelOverview.chartConfigApply}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview.chartConfigApplyAriaLabel
}
/>
<DefaultButton
onClick={(): void => {
this.setState({ targetFlyoutIsVisible: false });
}}
text={localization.ModelAssessment.ModelOverview.chartConfigCancel}
ariaLabel={localization.ModelAssessment.ModelOverview.chartConfigCancelAriaLabel}
ariaLabel={
localization.ModelAssessment.ModelOverview
.chartConfigCancelAriaLabel
}
/>
</Stack>
);
Expand Down

0 comments on commit 238015d

Please sign in to comment.