🧱 added backend
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
This commit is contained in:
parent
cd2dbd6eee
commit
a260cb63b7
29 changed files with 16 additions and 4 deletions
28
frontend/src/components/PaginationButton/index.tsx
Normal file
28
frontend/src/components/PaginationButton/index.tsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import q from 'qjuul'
|
||||
|
||||
interface PaginationButtonProps {
|
||||
pageNumber: number
|
||||
isCurrentPage?: boolean
|
||||
handlePageChange: (pageNumber: number) => void
|
||||
}
|
||||
|
||||
const PaginationButton: React.FC<PaginationButtonProps> = ({
|
||||
pageNumber,
|
||||
handlePageChange,
|
||||
isCurrentPage,
|
||||
}) => {
|
||||
return (
|
||||
<q.div
|
||||
onClick={() => handlePageChange(pageNumber)}
|
||||
className={
|
||||
isCurrentPage
|
||||
? 'bg-red-600 p-2 rounded-md hover:cursor-pointer'
|
||||
: 'bg-red-400 p-2 rounded-md hover:cursor-pointer'
|
||||
}
|
||||
>
|
||||
<p>{pageNumber}</p>
|
||||
</q.div>
|
||||
)
|
||||
}
|
||||
|
||||
export default PaginationButton
|
||||
0
frontend/src/components/PaginationButton/styles.css
Normal file
0
frontend/src/components/PaginationButton/styles.css
Normal file
Reference in a new issue