From baa9cd8078ef277f84714beda7a4afd4336a1a3c Mon Sep 17 00:00:00 2001 From: Agusti Bau Date: Sat, 2 May 2020 13:25:18 +0200 Subject: [PATCH] formatted files --- src/components/views/elements/DNDTagTile.js | 50 ++++++++++----------- src/components/views/elements/TagTile.js | 50 ++++++++++----------- 2 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/components/views/elements/DNDTagTile.js b/src/components/views/elements/DNDTagTile.js index b017704e70..67572d4508 100644 --- a/src/components/views/elements/DNDTagTile.js +++ b/src/components/views/elements/DNDTagTile.js @@ -19,7 +19,7 @@ import TagTile from './TagTile'; import React from 'react'; import { Draggable } from 'react-beautiful-dnd'; -import {ContextMenu, toRightOf, useContextMenu} from "../../structures/ContextMenu"; +import { ContextMenu, toRightOf, useContextMenu } from "../../structures/ContextMenu"; import * as sdk from '../../../index'; export default function DNDTagTile(props) { @@ -35,28 +35,28 @@ export default function DNDTagTile(props) { ); } - return
- - { (provided, snapshot) => ( -
- -
- ) } -
- {contextMenu} -
; + return
+ + {(provided, snapshot) => ( +
+ +
+ )} +
+ {contextMenu} +
; } diff --git a/src/components/views/elements/TagTile.js b/src/components/views/elements/TagTile.js index 0f98971198..d8983ac2ea 100644 --- a/src/components/views/elements/TagTile.js +++ b/src/components/views/elements/TagTile.js @@ -84,7 +84,7 @@ export default createReactClass({ this.props.tag, ).then((profile) => { if (this.unmounted) return; - this.setState({profile}); + this.setState({ profile }); }).catch((err) => { console.warn('Could not fetch group profile for ' + this.props.tag, err); }); @@ -111,18 +111,18 @@ export default createReactClass({ }, onMouseOver: function() { - this.setState({hover: true}); + this.setState({ hover: true }); }, onMouseOut: function() { - this.setState({hover: false}); + this.setState({ hover: false }); }, openMenu: function(e) { // Prevent the TagTile onClick event firing as well e.stopPropagation(); e.preventDefault(); - this.setState({hover: false}); + this.setState({ hover: false }); this.props.openMenu(); }, @@ -154,32 +154,32 @@ export default createReactClass({ // FIXME: this ought to use AccessibleButton for a11y but that causes onMouseOut/onMouseOver to fire too much const contextButton = this.state.hover || this.props.menuDisplayed ?
- { "\u00B7\u00B7\u00B7" } + {"\u00B7\u00B7\u00B7"}
:
; const AccessibleTooltipButton = sdk.getComponent("elements.AccessibleTooltipButton"); return +
-
- - { contextButton } - { badgeElement } -
- ; + + {contextButton} + {badgeElement} +
+
; }, });