Use the new Select component everywhere
This commit is contained in:
parent
cdf8b0b28d
commit
016ef8af79
4 changed files with 53 additions and 67 deletions
|
@ -5,7 +5,7 @@ import { LocalizerType } from '../types/Util';
|
|||
import { AccessControlClass } from '../textsecure.d';
|
||||
|
||||
type AccessControlOption = {
|
||||
name: string;
|
||||
text: string;
|
||||
value: number;
|
||||
};
|
||||
|
||||
|
@ -15,11 +15,11 @@ export function getAccessControlOptions(
|
|||
): Array<AccessControlOption> {
|
||||
return [
|
||||
{
|
||||
name: i18n('GroupV2--all-members'),
|
||||
text: i18n('GroupV2--all-members'),
|
||||
value: accessEnum.MEMBER,
|
||||
},
|
||||
{
|
||||
name: i18n('GroupV2--only-admins'),
|
||||
text: i18n('GroupV2--only-admins'),
|
||||
value: accessEnum.ADMINISTRATOR,
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue