Commit 087ff2fa by Johannes Schill

wip: Remove code for old react-select component #13425

parent d703b806
......@@ -17,10 +17,6 @@ export interface Props {
onCancel: () => void;
}
export interface TeamSelectedAction {
action: string;
}
class AddPermissions extends Component<Props, NewDashboardAclItem> {
constructor(props) {
super(props);
......@@ -57,7 +53,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
this.setState({ userId: user && !Array.isArray(user) ? user.id : 0 });
};
onTeamSelected = (team: Team, info: TeamSelectedAction) => {
onTeamSelected = (team: Team) => {
this.setState({ teamId: team && !Array.isArray(team) ? team.id : 0 });
};
......
......@@ -26,7 +26,6 @@ export default class DisabledPermissionListItem extends Component<Props, any> {
<DescriptionPicker
optionsWithDesc={dashboardPermissionLevels}
onSelected={() => {}}
value={item.permission}
disabled={true}
className={'gf-form-input--form-dropdown-right'}
/>
......
......@@ -77,7 +77,6 @@ export default class PermissionsListItem extends PureComponent<Props> {
<DescriptionPicker
optionsWithDesc={dashboardPermissionLevels}
onSelected={this.onPermissionChanged}
value={item.permission}
disabled={item.inherited}
className={'gf-form-select2__control--menu-right'}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment