
* [ISSUE-1189] Refactor Schemas store * Design review fix (#1341) * Design review fix init * changed pagination tests, refactored styles, fixed topicform * redesign fix code cleanup * styled select position * styled select fix bracket * resolved code review * moved latest version styles to theme * fixed queryByRole in pagination tests Co-authored-by: Ekaterina Petrova <epetrova@provectus.com> Co-authored-by: Oleg Shuralev <workshur@gmail.com> * Inconsistency in updating the global compatibility level (drop down menu) (#1363) * Fix select in schema registry * refactored GlobalSchemaSelector & ListItem * Moved list & list item tests to react-testing-library * Added some tests for GlobalSchemaSelector * Added props test * Specs Co-authored-by: Ekaterina Petrova <epetrova@provectus.com> Co-authored-by: Oleg Shuralev <workshur@gmail.com> * Feedback * Cleanup Co-authored-by: Ekaterina Petrova <32833172+Hurenka@users.noreply.github.com> Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
26 lines
496 B
TypeScript
26 lines
496 B
TypeScript
import React from 'react';
|
|
|
|
import { PaginationLink } from './Pagination.styled';
|
|
|
|
export interface PageControlProps {
|
|
current: boolean;
|
|
url: string;
|
|
page: number;
|
|
}
|
|
|
|
const PageControl: React.FC<PageControlProps> = ({ current, url, page }) => {
|
|
return (
|
|
<li>
|
|
<PaginationLink
|
|
to={url}
|
|
aria-label={`Goto page ${page}`}
|
|
$isCurrent={current}
|
|
role="button"
|
|
>
|
|
{page}
|
|
</PaginationLink>
|
|
</li>
|
|
);
|
|
};
|
|
|
|
export default PageControl;
|