diff options
author | 2022-06-27 18:21:31 +0200 | |
---|---|---|
committer | 2022-06-27 17:21:31 +0100 | |
commit | 0bf13689d53bd493fb4d0a4213c1801013b5aa8a (patch) | |
tree | 2b5ae44e4f1aa73b49c011954ff1cb47e3959bad /src/containers/auth | |
parent | chore: recommend specific vscode extensions to setup development [skip ci] (#... (diff) | |
download | ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.gz ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.zst ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.zip |
chore: transform containers/settings from js to tsx (#384)
Diffstat (limited to 'src/containers/auth')
-rw-r--r-- | src/containers/auth/AuthLayoutContainer.tsx | 6 | ||||
-rw-r--r-- | src/containers/auth/ChangeServerScreen.tsx | 6 | ||||
-rw-r--r-- | src/containers/auth/ImportScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/InviteScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/LockedScreen.tsx | 6 | ||||
-rw-r--r-- | src/containers/auth/LoginScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/PasswordScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/SetupAssistantScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/SignupScreen.tsx | 4 | ||||
-rw-r--r-- | src/containers/auth/WelcomeScreen.tsx | 4 |
10 files changed, 23 insertions, 23 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.tsx b/src/containers/auth/AuthLayoutContainer.tsx index 8d65ec6f4..abe3905e0 100644 --- a/src/containers/auth/AuthLayoutContainer.tsx +++ b/src/containers/auth/AuthLayoutContainer.tsx | |||
@@ -2,14 +2,14 @@ import { Component, ReactElement, ReactNode } from 'react'; | |||
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { ThemeProvider } from 'react-jss'; | 3 | import { ThemeProvider } from 'react-jss'; |
4 | 4 | ||
5 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
6 | import { Location } from 'mobx-react-router'; | 6 | import { Location } from 'mobx-react-router'; |
7 | import AuthLayout from '../../components/auth/AuthLayout'; | 7 | import AuthLayout from '../../components/auth/AuthLayout'; |
8 | import AppLoader from '../../components/ui/AppLoader'; | 8 | import AppLoader from '../../components/ui/AppLoader'; |
9 | 9 | ||
10 | interface AuthLayoutContainerProps extends DefaultProps { | 10 | interface AuthLayoutContainerProps extends StoresProps { |
11 | location: Location; | 11 | location: Location; |
12 | children: ReactNode[] | ReactNode; | 12 | children: ReactNode; |
13 | } | 13 | } |
14 | 14 | ||
15 | class AuthLayoutContainer extends Component<AuthLayoutContainerProps> { | 15 | class AuthLayoutContainer extends Component<AuthLayoutContainerProps> { |
diff --git a/src/containers/auth/ChangeServerScreen.tsx b/src/containers/auth/ChangeServerScreen.tsx index 6af87e4a1..6d0feaecb 100644 --- a/src/containers/auth/ChangeServerScreen.tsx +++ b/src/containers/auth/ChangeServerScreen.tsx | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
4 | import ChangeServer from '../../components/auth/ChangeServer'; | 4 | import ChangeServer from '../../components/auth/ChangeServer'; |
5 | 5 | ||
6 | class ChangeServerScreen extends Component<DefaultProps> { | 6 | class ChangeServerScreen extends Component<StoresProps> { |
7 | constructor(props: DefaultProps) { | 7 | constructor(props: StoresProps) { |
8 | super(props); | 8 | super(props); |
9 | 9 | ||
10 | this.onSubmit = this.onSubmit.bind(this); | 10 | this.onSubmit = this.onSubmit.bind(this); |
diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx index c128dec14..3522ce0ce 100644 --- a/src/containers/auth/ImportScreen.tsx +++ b/src/containers/auth/ImportScreen.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
4 | import Import from '../../components/auth/Import'; | 4 | import Import from '../../components/auth/Import'; |
5 | 5 | ||
6 | class ImportScreen extends Component<DefaultProps> { | 6 | class ImportScreen extends Component<StoresProps> { |
7 | render(): ReactElement { | 7 | render(): ReactElement { |
8 | const { actions, stores } = this.props; | 8 | const { actions, stores } = this.props; |
9 | 9 | ||
diff --git a/src/containers/auth/InviteScreen.tsx b/src/containers/auth/InviteScreen.tsx index a2c684f41..40ebdba8d 100644 --- a/src/containers/auth/InviteScreen.tsx +++ b/src/containers/auth/InviteScreen.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
4 | import Invite from '../../components/auth/Invite'; | 4 | import Invite from '../../components/auth/Invite'; |
5 | 5 | ||
6 | class InviteScreen extends Component<DefaultProps> { | 6 | class InviteScreen extends Component<StoresProps> { |
7 | render(): ReactElement { | 7 | render(): ReactElement { |
8 | const { actions } = this.props; | 8 | const { actions } = this.props; |
9 | 9 | ||
diff --git a/src/containers/auth/LockedScreen.tsx b/src/containers/auth/LockedScreen.tsx index 8e3c1ec49..88f743d02 100644 --- a/src/containers/auth/LockedScreen.tsx +++ b/src/containers/auth/LockedScreen.tsx | |||
@@ -1,16 +1,16 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
4 | import Locked from '../../components/auth/Locked'; | 4 | import Locked from '../../components/auth/Locked'; |
5 | 5 | ||
6 | import { hash } from '../../helpers/password-helpers'; | 6 | import { hash } from '../../helpers/password-helpers'; |
7 | 7 | ||
8 | class LockedScreen extends Component<DefaultProps> { | 8 | class LockedScreen extends Component<StoresProps> { |
9 | state = { | 9 | state = { |
10 | error: false, | 10 | error: false, |
11 | }; | 11 | }; |
12 | 12 | ||
13 | constructor(props: DefaultProps) { | 13 | constructor(props: StoresProps) { |
14 | super(props); | 14 | super(props); |
15 | 15 | ||
16 | this.onSubmit = this.onSubmit.bind(this); | 16 | this.onSubmit = this.onSubmit.bind(this); |
diff --git a/src/containers/auth/LoginScreen.tsx b/src/containers/auth/LoginScreen.tsx index 4c5271fe1..c2efd27eb 100644 --- a/src/containers/auth/LoginScreen.tsx +++ b/src/containers/auth/LoginScreen.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps, GlobalError } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps, GlobalError } from 'src/@types/ferdium-components.types'; |
4 | import Login from '../../components/auth/Login'; | 4 | import Login from '../../components/auth/Login'; |
5 | 5 | ||
6 | interface LoginScreenProps extends DefaultProps { | 6 | interface LoginScreenProps extends StoresProps { |
7 | error: GlobalError; | 7 | error: GlobalError; |
8 | } | 8 | } |
9 | 9 | ||
diff --git a/src/containers/auth/PasswordScreen.tsx b/src/containers/auth/PasswordScreen.tsx index 3176e5a8b..313554802 100644 --- a/src/containers/auth/PasswordScreen.tsx +++ b/src/containers/auth/PasswordScreen.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
4 | import Password from '../../components/auth/Password'; | 4 | import Password from '../../components/auth/Password'; |
5 | 5 | ||
6 | class PasswordScreen extends Component<DefaultProps> { | 6 | class PasswordScreen extends Component<StoresProps> { |
7 | render(): ReactElement { | 7 | render(): ReactElement { |
8 | const { actions, stores } = this.props; | 8 | const { actions, stores } = this.props; |
9 | 9 | ||
diff --git a/src/containers/auth/SetupAssistantScreen.tsx b/src/containers/auth/SetupAssistantScreen.tsx index 92f12c0bc..f7a353f26 100644 --- a/src/containers/auth/SetupAssistantScreen.tsx +++ b/src/containers/auth/SetupAssistantScreen.tsx | |||
@@ -2,11 +2,11 @@ | |||
2 | import { Component, ReactElement } from 'react'; | 2 | import { Component, ReactElement } from 'react'; |
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | 4 | ||
5 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
6 | import { sleep } from '../../helpers/async-helpers'; | 6 | import { sleep } from '../../helpers/async-helpers'; |
7 | import SetupAssistant from '../../components/auth/SetupAssistant'; | 7 | import SetupAssistant from '../../components/auth/SetupAssistant'; |
8 | 8 | ||
9 | class SetupAssistantScreen extends Component<DefaultProps> { | 9 | class SetupAssistantScreen extends Component<StoresProps> { |
10 | state = { | 10 | state = { |
11 | isSettingUpServices: false, | 11 | isSettingUpServices: false, |
12 | }; | 12 | }; |
diff --git a/src/containers/auth/SignupScreen.tsx b/src/containers/auth/SignupScreen.tsx index 1dac392ef..04b39df67 100644 --- a/src/containers/auth/SignupScreen.tsx +++ b/src/containers/auth/SignupScreen.tsx | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { DefaultProps, GlobalError } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps, GlobalError } from 'src/@types/ferdium-components.types'; |
5 | import Signup from '../../components/auth/Signup'; | 5 | import Signup from '../../components/auth/Signup'; |
6 | 6 | ||
7 | interface SignUpScreenComponents extends DefaultProps { | 7 | interface SignUpScreenComponents extends StoresProps { |
8 | error: GlobalError; | 8 | error: GlobalError; |
9 | } | 9 | } |
10 | 10 | ||
diff --git a/src/containers/auth/WelcomeScreen.tsx b/src/containers/auth/WelcomeScreen.tsx index bbd73f4a2..bbd5b4825 100644 --- a/src/containers/auth/WelcomeScreen.tsx +++ b/src/containers/auth/WelcomeScreen.tsx | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { DefaultProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from 'src/@types/ferdium-components.types'; |
5 | import Welcome from '../../components/auth/Welcome'; | 5 | import Welcome from '../../components/auth/Welcome'; |
6 | 6 | ||
7 | class WelcomeScreen extends Component<DefaultProps> { | 7 | class WelcomeScreen extends Component<StoresProps> { |
8 | render(): ReactElement { | 8 | render(): ReactElement { |
9 | const { user, recipePreviews } = this.props.stores; | 9 | const { user, recipePreviews } = this.props.stores; |
10 | 10 | ||