Update associations issues.
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
import { useQuery } from "@apollo/client";
|
||||
import { Button, Table } from "antd";
|
||||
import React from "react";
|
||||
import { useQuery } from "@apollo/client";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { QUERY_SHOP_ASSOCIATIONS } from "../../graphql/user.queries";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import AlertComponent from "../alert/alert.component";
|
||||
import RbacWrapper from "../rbac-wrapper/rbac-wrapper.component";
|
||||
import ShopUsersAuthEdit from "../shop-users-auth-edit/shop-users-auth-edit.component";
|
||||
|
||||
export default function ShopInfoUsersComponent() {
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
bodyshop: selectBodyshop,
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ShopInfoUsersComponent);
|
||||
|
||||
export function ShopInfoUsersComponent({ bodyshop }) {
|
||||
const { t } = useTranslation();
|
||||
const { loading, error, data } = useQuery(QUERY_SHOP_ASSOCIATIONS);
|
||||
const { loading, error, data } = useQuery(QUERY_SHOP_ASSOCIATIONS, {
|
||||
variables: { shopid: bodyshop.id },
|
||||
});
|
||||
const columns = [
|
||||
{
|
||||
title: t("user.fields.email"),
|
||||
|
||||
Reference in New Issue
Block a user