[build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import { PureComponent } from 'react';
|
||||
import PropTypes from "prop-types";
|
||||
import { PureComponent } from "react";
|
||||
|
||||
import classNames from 'classnames';
|
||||
import classNames from "classnames";
|
||||
|
||||
import Check from 'flavours/glitch/components/check';
|
||||
import Check from "flavours/glitch/components/check";
|
||||
|
||||
export default class Option extends PureComponent {
|
||||
|
||||
@@ -21,7 +21,7 @@ export default class Option extends PureComponent {
|
||||
handleKeyPress = e => {
|
||||
const { value, checked, onToggle } = this.props;
|
||||
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
if (e.key === "Enter" || e.key === " ") {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
onToggle(value, !checked);
|
||||
@@ -38,10 +38,10 @@ export default class Option extends PureComponent {
|
||||
|
||||
return (
|
||||
<label className='dialog-option poll__option selectable'>
|
||||
<input type={multiple ? 'checkbox' : 'radio'} name={name} value={value} checked={checked} onChange={this.handleChange} />
|
||||
<input type={multiple ? "checkbox" : "radio"} name={name} value={value} checked={checked} onChange={this.handleChange} />
|
||||
|
||||
<span
|
||||
className={classNames('poll__input', { active: checked, checkbox: multiple })}
|
||||
className={classNames("poll__input", { active: checked, checkbox: multiple })}
|
||||
tabIndex={0}
|
||||
role='radio'
|
||||
onKeyPress={this.handleKeyPress}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import { PureComponent } from 'react';
|
||||
import PropTypes from "prop-types";
|
||||
import { PureComponent } from "react";
|
||||
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import ImmutablePropTypes from "react-immutable-proptypes";
|
||||
|
||||
import { Avatar } from 'flavours/glitch/components/avatar';
|
||||
import { DisplayName } from 'flavours/glitch/components/display_name';
|
||||
import MediaAttachments from 'flavours/glitch/components/media_attachments';
|
||||
import { RelativeTimestamp } from 'flavours/glitch/components/relative_timestamp';
|
||||
import StatusContent from 'flavours/glitch/components/status_content';
|
||||
import VisibilityIcon from 'flavours/glitch/components/status_visibility_icon';
|
||||
import { Avatar } from "flavours/glitch/components/avatar";
|
||||
import { DisplayName } from "flavours/glitch/components/display_name";
|
||||
import MediaAttachments from "flavours/glitch/components/media_attachments";
|
||||
import { RelativeTimestamp } from "flavours/glitch/components/relative_timestamp";
|
||||
import StatusContent from "flavours/glitch/components/status_content";
|
||||
import VisibilityIcon from "flavours/glitch/components/status_visibility_icon";
|
||||
|
||||
import Option from './option';
|
||||
import Option from "./option";
|
||||
|
||||
export default class StatusCheckBox extends PureComponent {
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class StatusCheckBox extends PureComponent {
|
||||
render () {
|
||||
const { status, checked } = this.props;
|
||||
|
||||
if (status.get('reblog')) {
|
||||
if (status.get("reblog")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -37,10 +37,10 @@ export default class StatusCheckBox extends PureComponent {
|
||||
<div className='status-check-box__status poll__option__text'>
|
||||
<div className='detailed-status__display-name'>
|
||||
<div className='detailed-status__display-avatar'>
|
||||
<Avatar account={status.get('account')} size={46} />
|
||||
<Avatar account={status.get("account")} size={46} />
|
||||
</div>
|
||||
|
||||
<div><DisplayName account={status.get('account')} /> · <VisibilityIcon visibility={status.get('visibility')} /><RelativeTimestamp timestamp={status.get('created_at')} /></div>
|
||||
<div><DisplayName account={status.get("account")} /> · <VisibilityIcon visibility={status.get("visibility")} /><RelativeTimestamp timestamp={status.get("created_at")} /></div>
|
||||
</div>
|
||||
|
||||
<StatusContent status={status} media={<MediaAttachments status={status} revealed={false} />} />
|
||||
@@ -50,10 +50,10 @@ export default class StatusCheckBox extends PureComponent {
|
||||
return (
|
||||
<Option
|
||||
name='status_ids'
|
||||
value={status.get('id')}
|
||||
value={status.get("id")}
|
||||
checked={checked}
|
||||
onToggle={this.handleStatusesToggle}
|
||||
label={status.get('search_index')}
|
||||
label={status.get("search_index")}
|
||||
labelComponent={labelComponent}
|
||||
multiple
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user