Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -14,11 +14,11 @@
limitations under the License.
*/
import React from 'react';
import React from "react";
import TextWithTooltip from './TextWithTooltip';
import TextWithTooltip from "./TextWithTooltip";
interface IProps extends Omit<React.ComponentProps<typeof TextWithTooltip>, "tabIndex" | "onClick" > {}
interface IProps extends Omit<React.ComponentProps<typeof TextWithTooltip>, "tabIndex" | "onClick"> {}
export default class LinkWithTooltip extends React.Component<IProps> {
constructor(props: IProps) {
@ -34,10 +34,10 @@ export default class LinkWithTooltip extends React.Component<IProps> {
// itself allows focusing which also triggers the tooltip.
tabIndex={-1}
tooltip={tooltip}
onClick={e => (e.target as HTMLElement).blur()} // Force tooltip to hide on clickout
onClick={(e) => (e.target as HTMLElement).blur()} // Force tooltip to hide on clickout
{...props}
>
{ children }
{children}
</TextWithTooltip>
);
}