Use the new Select component everywhere

This commit is contained in:
Josh Perez 2021-06-03 18:12:23 -04:00 committed by GitHub
parent cdf8b0b28d
commit 016ef8af79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 67 deletions

View file

@ -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,
},
];