You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Conform to new react and typescript eslint rules
This commit is contained in:
		@@ -404,7 +404,7 @@ export const SpaceHierarchy: React.FC<IHierarchyProps> = ({
 | 
			
		||||
    const [saving, setSaving] = useState(false);
 | 
			
		||||
 | 
			
		||||
    if (summaryError) {
 | 
			
		||||
        return <p>{_t("Your server does not support showing space hierarchies.")}</p>;
 | 
			
		||||
        return <p>{ _t("Your server does not support showing space hierarchies.") }</p>;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let content;
 | 
			
		||||
@@ -569,7 +569,7 @@ export const SpaceHierarchy: React.FC<IHierarchyProps> = ({
 | 
			
		||||
    return <>
 | 
			
		||||
        <SearchBox
 | 
			
		||||
            className="mx_textinput_icon mx_textinput_search"
 | 
			
		||||
            placeholder={ _t("Search names and descriptions") }
 | 
			
		||||
            placeholder={_t("Search names and descriptions")}
 | 
			
		||||
            onSearch={setQuery}
 | 
			
		||||
            autoFocus={true}
 | 
			
		||||
            initialValue={initialText}
 | 
			
		||||
@@ -608,7 +608,7 @@ const SpaceRoomDirectory: React.FC<IProps> = ({ space, onFinished, initialText }
 | 
			
		||||
                { _t("If you can't find the room you're looking for, ask for an invite or <a>create a new room</a>.",
 | 
			
		||||
                    null,
 | 
			
		||||
                    { a: sub => {
 | 
			
		||||
                        return <AccessibleButton kind="link" onClick={onCreateRoomClick}>{sub}</AccessibleButton>;
 | 
			
		||||
                        return <AccessibleButton kind="link" onClick={onCreateRoomClick}>{ sub }</AccessibleButton>;
 | 
			
		||||
                    } },
 | 
			
		||||
                ) }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user