In progress update job mutation. Unknown how to have this use an input object.

This commit is contained in:
Patrick Fic
2019-12-12 22:06:35 -08:00
parent 9d74cc19c9
commit 36e8449383
6 changed files with 24 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import { useQuery } from "react-apollo";
import { Link } from "react-router-dom";
import { GET_CURRENT_USER } from "../../graphql/local.queries";
import { Icon } from "antd";
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
export default function ManageSignInButton() {
const {
@@ -11,9 +12,9 @@ export default function ManageSignInButton() {
data: { currentUser }
} = useQuery(GET_CURRENT_USER);
if (loading) return "MSI Loading";
if (loading) return <LoadingSpinner />;
if (error) return error.message;
console.log("currentUser", currentUser);
return currentUser ? (
<div>
{" "}