[Glitch] Enable the eslint `react/no-unknown-property` rule

Port ee83d5c760 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Matt Jankowski 2023-12-06 08:42:12 -05:00 committed by Claire
parent 077e0c6812
commit 01e77a0f34
4 changed files with 5 additions and 6 deletions

View File

@ -294,9 +294,9 @@ class LoginForm extends React.PureComponent {
onFocus={this.handleFocus} onFocus={this.handleFocus}
onBlur={this.handleBlur} onBlur={this.handleBlur}
onKeyDown={this.handleKeyDown} onKeyDown={this.handleKeyDown}
autocomplete='off' autoComplete='off'
autocapitalize='off' autoCapitalize='off'
spellcheck='false' spellCheck='false'
/> />
<Button onClick={this.handleSubmit} disabled={isSubmitting || error}><FormattedMessage id='interaction_modal.login.action' defaultMessage='Take me home' /></Button> <Button onClick={this.handleSubmit} disabled={isSubmitting || error}><FormattedMessage id='interaction_modal.login.action' defaultMessage='Take me home' /></Button>

View File

@ -59,7 +59,7 @@ class ConfirmationModal extends PureComponent {
{ onDoNotAsk && ( { onDoNotAsk && (
<div className='confirmation-modal__do_not_ask_again'> <div className='confirmation-modal__do_not_ask_again'>
<input type='checkbox' id='confirmation-modal__do_not_ask_again-checkbox' ref={this.setDoNotAskRef} /> <input type='checkbox' id='confirmation-modal__do_not_ask_again-checkbox' ref={this.setDoNotAskRef} />
<label for='confirmation-modal__do_not_ask_again-checkbox'> <label htmlFor='confirmation-modal__do_not_ask_again-checkbox'>
<FormattedMessage id='confirmation_modal.do_not_ask_again' defaultMessage='Do not ask for confirmation again' /> <FormattedMessage id='confirmation_modal.do_not_ask_again' defaultMessage='Do not ask for confirmation again' />
</label> </label>
</div> </div>

View File

@ -66,7 +66,7 @@ class NavigationPanel extends Component {
return ( return (
<div className='navigation-panel'> <div className='navigation-panel'>
{banner && {banner &&
<div class='navigation-panel__banner'> <div className='navigation-panel__banner'>
{banner} {banner}
</div> </div>
} }

View File

@ -592,7 +592,6 @@ class Video extends PureComponent {
aria-label={alt} aria-label={alt}
title={alt} title={alt}
lang={lang} lang={lang}
volume={volume}
onClick={this.togglePlay} onClick={this.togglePlay}
onKeyDown={this.handleVideoKeyDown} onKeyDown={this.handleVideoKeyDown}
onPlay={this.handlePlay} onPlay={this.handlePlay}