Added database changes and faced issues with permissions. Added shop query.
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
import React from 'react'
|
||||
import React from "react";
|
||||
import { useQuery } from "@apollo/react-hooks";
|
||||
//import { GET_ALL_OPEN_JOBS } from "../../graphql/jobs.queries";
|
||||
import { gql } from "apollo-boost";
|
||||
import Spin from "../../components/loading-spinner/loading-spinner.component";
|
||||
|
||||
const g = gql`
|
||||
{
|
||||
associations {
|
||||
id
|
||||
shopid
|
||||
useremail
|
||||
active
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default function JobsPage() {
|
||||
return (
|
||||
<div>
|
||||
Jobs Master Page
|
||||
</div>
|
||||
)
|
||||
const { loading, error, data } = useQuery(g);
|
||||
|
||||
if (loading) return <Spin />;
|
||||
if (error) return `Error! ${error.message}`;
|
||||
console.log(data);
|
||||
return <div>Hi</div>;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from "react";
|
||||
import Board from "react-trello";
|
||||
import WhiteBoardCard from "../../components/white-board-card/white-board-card.component";
|
||||
import WhiteBoardLeftSiderContainer from "../../components/white-board-left-sider/white-board-left-sider.container";
|
||||
import { Layout, Icon, Menu } from "antd";
|
||||
import { Layout } from "antd";
|
||||
|
||||
export default function WhiteBoardPage({ whiteBoardLeftSiderVisible }) {
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user