// @flow import * as PAGES from 'constants/pages'; import React, { useEffect } from 'react'; import Button from 'component/button'; import ClaimList from 'component/claimList'; import Page from 'component/page'; import Paginate from 'component/common/paginate'; import { PAGE_SIZE } from 'constants/claim'; import WebUploadList from 'component/webUploadList'; import Spinner from 'component/spinner'; type Props = { checkPendingPublishes: () => void, clearPublish: () => void, fetchClaimListMine: () => void, fetching: boolean, urls: Array, urlTotal: ?number, history: { replace: string => void }, page: number, }; function FileListPublished(props: Props) { const { checkPendingPublishes, clearPublish, fetchClaimListMine, fetching, urls, urlTotal } = props; useEffect(() => { checkPendingPublishes(); fetchClaimListMine(); }, [checkPendingPublishes, fetchClaimListMine]); return (