mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Fix lint issues
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import cn from 'classnames';
|
||||
import styles from './SortOption.css';
|
||||
import PropTypes from 'prop-types';
|
||||
import {PLUGIN_NAME} from '../../constants';
|
||||
import { PLUGIN_NAME } from '../../constants';
|
||||
|
||||
export default class SortOption extends React.Component {
|
||||
render() {
|
||||
@@ -12,9 +12,7 @@ export default class SortOption extends React.Component {
|
||||
{ [`${PLUGIN_NAME}-sort-option-active`]: this.props.active },
|
||||
]);
|
||||
return (
|
||||
<label
|
||||
className={className}
|
||||
>
|
||||
<label className={className}>
|
||||
<input
|
||||
type="radio"
|
||||
onChange={this.props.setSort}
|
||||
|
||||
@@ -4,4 +4,3 @@ export const PLUGIN_NAME = 'talk-plugin-viewing-options';
|
||||
const prefix = 'TALK_VIEWING_OPTIONS';
|
||||
export const OPEN_MENU = `${prefix}_OPEN_MENU`;
|
||||
export const CLOSE_MENU = `${prefix}_CLOSE_MENU`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user