chore: update prettier configuration for print width (#519)
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
@@ -47,23 +47,12 @@ export const TablePagination = ({ total }: TablePaginationProps) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<Pagination
|
||||
total={total}
|
||||
getItemProps={getItemProps}
|
||||
getControlProps={getControlProps}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<Pagination total={total} getItemProps={getItemProps} getControlProps={getControlProps} onChange={handleChange} />
|
||||
);
|
||||
};
|
||||
|
||||
type ControlType = Parameters<
|
||||
Exclude<PaginationProps["getControlProps"], undefined>
|
||||
>[0];
|
||||
const calculatePageFor = (
|
||||
type: ControlType,
|
||||
current: number,
|
||||
total: number,
|
||||
) => {
|
||||
type ControlType = Parameters<Exclude<PaginationProps["getControlProps"], undefined>>[0];
|
||||
const calculatePageFor = (type: ControlType, current: number, total: number) => {
|
||||
switch (type) {
|
||||
case "first":
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user