mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	lint
This commit is contained in:
		
							parent
							
								
									26eaef848b
								
							
						
					
					
						commit
						d6a532040e
					
				@ -109,7 +109,7 @@ interface IProps extends React.InputHTMLAttributes<Element> {
 | 
			
		||||
    tabIndex?: number,
 | 
			
		||||
    disabled?: boolean,
 | 
			
		||||
    className?: string,
 | 
			
		||||
    onClick(e?: React.MouseEvent<Element> | React.KeyboardEvent<Element>): void;
 | 
			
		||||
    onClick?(e?: React.MouseEvent<Element> | React.KeyboardEvent<Element>): void;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
interface IAccessibleButtonProps extends React.InputHTMLAttributes<Element> {
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@ import classNames from "classnames";
 | 
			
		||||
import * as sdk from "../../../index";
 | 
			
		||||
 | 
			
		||||
// Controlled Toggle Switch element, written with Accessibility in mind
 | 
			
		||||
export default ({checked, disabled=false, onChange, ...props}: IProps) => {
 | 
			
		||||
export default ({checked, disabled = false, onChange, ...props}: IProps) => {
 | 
			
		||||
    const _onClick = () => {
 | 
			
		||||
        if (disabled) return;
 | 
			
		||||
        onChange(!checked);
 | 
			
		||||
 | 
			
		||||
@ -182,7 +182,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
 | 
			
		||||
                                tabIndex={tabIndex}
 | 
			
		||||
                                className={"mx_RoomSubList_label"}
 | 
			
		||||
                                role="treeitem"
 | 
			
		||||
                                aria-level="1"
 | 
			
		||||
                                aria-level={1}
 | 
			
		||||
                            >
 | 
			
		||||
                                {chevron}
 | 
			
		||||
                                <span>{this.props.label}</span>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user