Skip to content

Commit

Permalink
Merge pull request #120 from M3nin0/dev
Browse files Browse the repository at this point in the history
list: including extra url support in the LatestRecords component
  • Loading branch information
M3nin0 authored Apr 8, 2024
2 parents 8c91959 + a97e482 commit 82fac95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/list/thematic/LatestRecords.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { RecordList } from '../moldure/RecordList';
import { fetchRecords } from '../../../resources';
import { mutateRecordData } from '../base/mutations';

export const LatestRecords = ({ fetchUrl, staleTime }) => {
export const LatestRecords = ({ fetchUrl, moreUrl, staleTime }) => {
const {
data: records,
isFetching,
Expand Down Expand Up @@ -57,7 +57,7 @@ export const LatestRecords = ({ fetchUrl, staleTime }) => {
</Grid.Row>
<Grid.Row columns={1}>
<Container textAlign={'center'}>
<Button href={'/search'}>More</Button>
<Button href={moreUrl}>More</Button>
</Container>
</Grid.Row>
</Grid>
Expand Down

0 comments on commit 82fac95

Please sign in to comment.