Added database changes and faced issues with permissions. Added shop query.

This commit is contained in:
Patrick Fic
2019-12-10 17:00:54 -08:00
parent 16160c0793
commit 7709f42a31
60 changed files with 1511 additions and 5117 deletions

View File

@@ -14,21 +14,21 @@ class WhiteBoardCard extends React.Component {
render() {
const { loading } = this.state;
const {
onClick,
className,
name,
cardStyle,
body,
dueOn,
cardColor,
subTitle,
tagStyle,
escalationText,
tags,
showDeleteButton,
onDelete
} = this.props;
// const {
// onClick,
// className,
// name,
// cardStyle,
// body,
// dueOn,
// cardColor,
// subTitle,
// tagStyle,
// escalationText,
// tags,
// showDeleteButton,
// onDelete
// } = this.props;
return (
<div>

View File

@@ -1,17 +1,19 @@
import React from "react";
import { Query, Mutation } from "react-apollo";
import { Query } from "react-apollo";
import WhiteBoardLeftSiderComponent from './white-board-left-sider.component'
import WhiteBoardLeftSiderComponent from "./white-board-left-sider.component";
import Spin from "../loading-spinner/loading-spinner.component";
import { GET_WHITE_BOARD_LEFT_SIDER_VISIBLE } from "../../graphql/local.queries";
export default function WhiteBoardPageContainer() {
return (
<Query query={GET_WHITE_BOARD_LEFT_SIDER_VISIBLE}>
{({ loading, error, data: { whiteBoardLeftSiderVisible} }) => {
{({ loading, error, data: { whiteBoardLeftSiderVisible } }) => {
if (loading) return <Spin />;
if (error) return error.message;
return <WhiteBoardLeftSiderComponent visible={whiteBoardLeftSiderVisible}/>;
return (
<WhiteBoardLeftSiderComponent visible={whiteBoardLeftSiderVisible} />
);
}}
</Query>
);