IO-2626 Modify seachparm and fix linking

This commit is contained in:
Allan Carr
2024-02-05 20:03:17 -08:00
parent 205d507097
commit 9383b37a41
3 changed files with 24 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
import { useQuery } from "@apollo/client";
import { Col, Row } from "antd";
import React, { useEffect, useState } from "react";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -30,7 +30,6 @@ export function ShopCsiContainer({
setSelectedHeader,
}) {
const { t } = useTranslation();
const [responseid, setresponseid] = useState("");
const { loading, error, data, refetch } = useQuery(
QUERY_CSI_RESPONSE_PAGINATED,
@@ -63,11 +62,10 @@ export function ShopCsiContainer({
loading={loading}
responses={data ? data.csi : []}
total={data ? data.csi_aggregate.aggregate.count : 0}
setresponseid={setresponseid}
/>
</Col>
<Col span={14}>
<CsiResponseFormContainer responseid={responseid} />
<CsiResponseFormContainer />
</Col>
</Row>
</RbacWrapper>