-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block empty cohort creation in RAI Dashboard (#1335)
- Loading branch information
1 parent
aa18d00
commit f7d75d3
Showing
6 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
libs/core-ui/src/lib/Cohort/ManualCohortManagement/EmptyCohortDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { localization } from "@responsible-ai/localization"; | ||
import { Dialog, DialogType } from "office-ui-fabric-react"; | ||
import React from "react"; | ||
|
||
export interface IEmptyCohortDialogProps { | ||
onClose(): void; | ||
} | ||
|
||
export class EmptyCohortDialog extends React.Component<IEmptyCohortDialogProps> { | ||
public render(): React.ReactNode { | ||
const dialogContentProps = { | ||
className: "emptyCohortDialog", | ||
subText: localization.Core.EmptyCohortDialog.subText, | ||
title: localization.Core.EmptyCohortDialog.title, | ||
type: DialogType.normal | ||
}; | ||
const modalProps = { | ||
isBlocking: true | ||
}; | ||
return ( | ||
<Dialog | ||
maxWidth={"480px"} | ||
minWidth={"480px"} | ||
hidden={false} | ||
dialogContentProps={dialogContentProps} | ||
modalProps={modalProps} | ||
onDismiss={() => this.props.onClose()} | ||
/> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters