You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
tslint
This commit is contained in:
@@ -58,7 +58,7 @@ export default class Slider extends React.Component<SliderProps> {
|
||||
|
||||
render(): React.ReactNode {
|
||||
const dots = this.props.values.map(v =>
|
||||
<Dot active={v<=this.props.value}
|
||||
<Dot active={v <= this.props.value}
|
||||
label={this.props.displayFunc(v)}
|
||||
onClick={() => this.props.onSelectionChange(v)}
|
||||
key={v}
|
||||
@@ -108,7 +108,7 @@ class Dot extends React.Component<DotProps> {
|
||||
}
|
||||
|
||||
render(): React.ReactNode {
|
||||
const className = "mx_Slider_dot" + (this.props.active? " mx_Slider_dotActive": "");
|
||||
const className = "mx_Slider_dot" + (this.props.active ? " mx_Slider_dotActive" : "");
|
||||
|
||||
return <span onClick={this.props.onClick} className="mx_Slider_dotValue">
|
||||
<div className={className} />
|
||||
|
||||
Reference in New Issue
Block a user