Fix motto

This commit is contained in:
Bill 2022-03-17 00:28:28 -04:00
parent 2155198fb0
commit 546696b204

View File

@ -146,7 +146,7 @@ export const InfoStandWidgetUserView: FC<InfoStandWidgetUserViewProps> = props =
<FontAwesomeIcon icon="pencil-alt" className="small" /> <FontAwesomeIcon icon="pencil-alt" className="small" />
<Flex grow alignItems="center" className="motto-content"> <Flex grow alignItems="center" className="motto-content">
{ !isEditingMotto && { !isEditingMotto &&
<Text fullWidth pointer wrap textBreak small variant="white" onClick={ event => setIsEditingMotto(true) }>{ motto }</Text> } <Text fullWidth pointer wrap textBreak small variant="white" onClick={ event => setIsEditingMotto(true) }>{ motto }&nbsp;</Text> }
{ isEditingMotto && { isEditingMotto &&
<input type="text" className="motto-input" maxLength={ 38 } value={ motto } onChange={ event => setMotto(event.target.value) } onBlur={ onMottoBlur } onKeyDown={ onMottoKeyDown } autoFocus={ true } /> } <input type="text" className="motto-input" maxLength={ 38 } value={ motto } onChange={ event => setMotto(event.target.value) } onBlur={ onMottoBlur } onKeyDown={ onMottoKeyDown } autoFocus={ true } /> }
</Flex> </Flex>