From ba187b17c4927c83b35e872a56c503d5aa1dcbf2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 26 Oct 2022 23:45:39 +0530 Subject: Lint fixes and recipes update to bring in same node version as the parent repo --- src/components/settings/account/AccountDashboard.tsx | 5 ++--- src/components/ui/Loader.tsx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/settings/account/AccountDashboard.tsx b/src/components/settings/account/AccountDashboard.tsx index 8d6cfdfe6..b0debdaf2 100644 --- a/src/components/settings/account/AccountDashboard.tsx +++ b/src/components/settings/account/AccountDashboard.tsx @@ -1,6 +1,6 @@ import { Component } from 'react'; import { observer } from 'mobx-react'; -import {defineMessages, injectIntl, WrappedComponentProps} from 'react-intl'; +import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; import ReactTooltip from 'react-tooltip'; import { H1, H2 } from '../../ui/headline'; @@ -8,7 +8,7 @@ import Loader from '../../ui/Loader'; import Button from '../../ui/button'; import Infobox from '../../ui/infobox'; import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; -import User from "../../../models/User"; +import User from '../../../models/User'; const messages = defineMessages({ headline: { @@ -79,7 +79,6 @@ interface IProp extends WrappedComponentProps { @observer class AccountDashboard extends Component { - render() { const { user, diff --git a/src/components/ui/Loader.tsx b/src/components/ui/Loader.tsx index ae51f8145..5e78ed47a 100644 --- a/src/components/ui/Loader.tsx +++ b/src/components/ui/Loader.tsx @@ -1,4 +1,4 @@ -import {Component, PropsWithChildren} from 'react'; +import { Component, PropsWithChildren } from 'react'; import { observer, inject } from 'mobx-react'; import Loader from 'react-loader'; @@ -12,7 +12,7 @@ interface IProps { } // Can this file be merged into the './loader/index.tsx' file? -@inject("stores") +@inject('stores') @observer class LoaderComponent extends Component> { static defaultProps = { -- cgit v1.2.3-54-g00ecf