Big progress!
This commit is contained in:
@@ -3,7 +3,7 @@ import { Button, Card, Table } from "antd";
|
||||
import queryString from "query-string";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useSearchParams, useNavigate } from "react-router-dom";
|
||||
import { Link, useNavigate, useLocation } from "react-router-dom";
|
||||
import { DateFormatter } from "../../utils/DateFormatter";
|
||||
import { alphaSort } from "../../utils/sorters";
|
||||
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
|
||||
@@ -15,7 +15,7 @@ export default function CsiResponseListPaginated({
|
||||
responses,
|
||||
total,
|
||||
}) {
|
||||
const search = queryString.parse(useSearchParams().toString());
|
||||
const search = queryString.parse(useLocation().search);
|
||||
const { responseid, page, sortcolumn, sortorder } = search;
|
||||
const history = useNavigate();
|
||||
const [state, setState] = useState({
|
||||
@@ -128,7 +128,7 @@ export default function CsiResponseListPaginated({
|
||||
handleOnRowClick(record);
|
||||
}, // click row
|
||||
};
|
||||
}}q
|
||||
}}
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user