Front: Add Missing Translation + Prettier

This commit is contained in:
Arthur Jamet
2023-06-26 15:00:35 +01:00
parent ccc86895e2
commit 3d76834f45
5 changed files with 29 additions and 28 deletions
+7 -7
View File
@@ -1,7 +1,7 @@
import { useEffect } from "react"
import { useDispatch } from "react-redux";
import API, { AccessToken } from "../API";
import { setAccessToken } from "../state/UserSlice";
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import API, { AccessToken } from '../API';
import { setAccessToken } from '../state/UserSlice';
const GoogleView = () => {
const dispatch = useDispatch();
@@ -11,13 +11,13 @@ const GoogleView = () => {
const accessToken = await API.fetch({
route: `/auth/logged/google${window.location.search}`,
method: 'GET',
}).then((responseBody) => responseBody.access_token as AccessToken)
dispatch(setAccessToken(accessToken))
}).then((responseBody) => responseBody.access_token as AccessToken);
dispatch(setAccessToken(accessToken));
}
run();
}, []);
return <p>Loading please wait</p>;
}
};
export default GoogleView;