Commit 087ff2fa by Johannes Schill

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

parent d703b806
...@@ -17,10 +17,6 @@ export interface Props { ...@@ -17,10 +17,6 @@ export interface Props {
onCancel: () => void; onCancel: () => void;
} }
export interface TeamSelectedAction {
action: string;
}
class AddPermissions extends Component<Props, NewDashboardAclItem> { class AddPermissions extends Component<Props, NewDashboardAclItem> {
constructor(props) { constructor(props) {
super(props); super(props);
...@@ -57,7 +53,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> { ...@@ -57,7 +53,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
this.setState({ userId: user && !Array.isArray(user) ? user.id : 0 }); 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 }); this.setState({ teamId: team && !Array.isArray(team) ? team.id : 0 });
}; };
......
...@@ -26,7 +26,6 @@ export default class DisabledPermissionListItem extends Component<Props, any> { ...@@ -26,7 +26,6 @@ export default class DisabledPermissionListItem extends Component<Props, any> {
<DescriptionPicker <DescriptionPicker
optionsWithDesc={dashboardPermissionLevels} optionsWithDesc={dashboardPermissionLevels}
onSelected={() => {}} onSelected={() => {}}
value={item.permission}
disabled={true} disabled={true}
className={'gf-form-input--form-dropdown-right'} className={'gf-form-input--form-dropdown-right'}
/> />
......
...@@ -77,7 +77,6 @@ export default class PermissionsListItem extends PureComponent<Props> { ...@@ -77,7 +77,6 @@ export default class PermissionsListItem extends PureComponent<Props> {
<DescriptionPicker <DescriptionPicker
optionsWithDesc={dashboardPermissionLevels} optionsWithDesc={dashboardPermissionLevels}
onSelected={this.onPermissionChanged} onSelected={this.onPermissionChanged}
value={item.permission}
disabled={item.inherited} disabled={item.inherited}
className={'gf-form-select2__control--menu-right'} 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