kafka-ui/kafka-ui-react-app/src/components/common/Pagination/PageControl.tsx
Oleg Shur 613348faa2
[ISSUE-1189] Refactor Schemas store (#1327)
* [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>
2022-01-11 13:32:32 +03:00

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;