@rnga/orders
Version:
## Get schema from @prisma-cms 1. yarn get-api-schema -e http://localhost:4000 2. yarn build-api-fragments
30 lines (21 loc) • 510 B
JavaScript
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import OrdersConnector from "./connector";
import Context from "@prisma-cms/context";
export default class OrdersPage extends Component {
// static propTypes = {
// // prop: PropTypes
// }
static contextType = Context;
render() {
const {
user: CurrentUser,
} = this.context;
if (!CurrentUser) {
return "Не авторизован";
}
return (
<OrdersConnector />
)
}
}