diff --git a/packages/mattermost-plugin/AtmosphereProvider.tsx b/packages/mattermost-plugin/AtmosphereProvider.tsx
index 251ca90f384..36b51ed342e 100644
--- a/packages/mattermost-plugin/AtmosphereProvider.tsx
+++ b/packages/mattermost-plugin/AtmosphereProvider.tsx
@@ -1,29 +1,31 @@
+import {Client4} from 'mattermost-redux/client'
import {ReactNode, useCallback, useEffect} from 'react'
+import {useSelector} from 'react-redux'
import {RelayEnvironmentProvider} from 'react-relay'
import {Atmosphere} from './Atmosphere'
import {getPluginServerRoute} from './selectors'
-import {Client4} from 'mattermost-redux/client'
-import {useSelector} from 'react-redux'
type Props = {
environment: Atmosphere
children: ReactNode
}
-export default function AtmosphereProvider({ environment, children }: Props) {
+export default function AtmosphereProvider({environment, children}: Props) {
const pluginServerRoute = useSelector(getPluginServerRoute)
const serverUrl = `${pluginServerRoute}/login`
const login = useCallback(async () => {
- const response = await fetch(serverUrl, Client4.getOptions({
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- }));
+ const response = await fetch(
+ serverUrl,
+ Client4.getOptions({
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ })
+ )
const body = await response.json()
console.log('GEORG response', body)
environment.state.authToken = body.authToken
-
}, [serverUrl])
useEffect(() => {
@@ -36,9 +38,5 @@ export default function AtmosphereProvider({ environment, children }: Props) {
return null
}
- return (
-