Skip to content

Commit d181611

Browse files
load more items button
1 parent ba56c30 commit d181611

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/feed/Feed.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useCallback, useContext, useEffect, useRef, useState } from 'react'
44
import { FetchLoading } from 'fetch-loading'
55
import { Badge } from '@/components/ui/badge'
6+
import { Button } from '@/components/ui/button'
67
import {
78
Card,
89
CardContent,
@@ -172,6 +173,16 @@ const Feed = () => {
172173
<FetchLoading ariaLabel="Loading more Items." />
173174
</div>
174175
)}
176+
<Button asChild variant="outline" className="px-4">
177+
<button
178+
className="text-large"
179+
aria-label="Load more Posts"
180+
title="Load more Posts"
181+
onClick={loadMoreItems}
182+
>
183+
Load more Posts
184+
</button>
185+
</Button>
175186
</main>
176187
)
177188
}

0 commit comments

Comments
 (0)