disable group creator button

This commit is contained in:
Michael Fatemi 2021-08-11 19:59:34 -04:00
parent 4354f87eed
commit 9844c0b8c4

View File

@ -33,7 +33,7 @@ export default function GroupCreator() {
Name
<UITextInput onChangeText={setName} value={name} />
<UIButton
onClick={onClickedCreateGroup}
onClick={buttonEnabled ? onClickedCreateGroup : () => {}}
style={!buttonEnabled ? { color: 'grey' } : {}}
>
{creating ? 'Creating group' : 'Create group'}