Fix build warnings

This commit is contained in:
jwu-fisker
2021-01-06 22:00:23 -08:00
parent 75eeb0e4e9
commit 812b91ee74
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { Button, Container, CssBaseline, Grid, Link, Typography } from '@material-ui/core'; import { Button, Container, CssBaseline, Grid, Typography } from '@material-ui/core';
import { DropzoneAreaBase } from 'material-ui-dropzone'; import { DropzoneAreaBase } from 'material-ui-dropzone';
import { useUserContext } from '../Contexts/UserContext'; import { useUserContext } from '../Contexts/UserContext';
import useStyles from '../Styles'; import useStyles from '../Styles';

View File

@@ -22,7 +22,7 @@ export const UserProvider = ({ children }) => {
await signOut(); await signOut();
} }
}; };
verifyToken(); verifyToken(jwtToken);
return () => {}; return () => {};
}, []); }, []);

View File

@@ -1,6 +1,6 @@
const AUTH_URL = 'https://dev-auth.fiskerdps.com'; const AUTH_URL = 'https://dev-auth.fiskerdps.com';
export default { const auth = {
signIn: (username, password) => fetch(`${AUTH_URL}/auth/login`, { signIn: (username, password) => fetch(`${AUTH_URL}/auth/login`, {
method: "POST", method: "POST",
headers: { headers: {
@@ -30,4 +30,6 @@ export default {
}, },
body: JSON.stringify({ token: jwt }) body: JSON.stringify({ token: jwt })
}).then((response) => response.json()), }).then((response) => response.json()),
} };
export default auth;