change(ui) - fetch details modal refactor and added prev and next navigation

This commit is contained in:
Shekar Siri 2022-11-15 19:25:36 +01:00
parent 39ddd3d82a
commit 12b9365600

View file

@ -7,11 +7,11 @@ import FetchTabs from './components/FetchTabs/FetchTabs';
interface Props {
resource: any;
rows: any;
rows?: any;
fetchPresented?: boolean;
}
function FetchDetailsModal(props: Props) {
const { rows, fetchPresented = false } = props;
const { rows = [], fetchPresented = false } = props;
const [resource, setResource] = useState(props.resource);
const [first, setFirst] = useState(false);
const [last, setLast] = useState(false);