From 55b4ce14d3746d8c74595fe8f7a4a69820e46b49 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 18 Feb 2020 19:49:46 +0300 Subject: [PATCH] Pager updated --- src/components/Pager/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Pager/index.tsx b/src/components/Pager/index.tsx index d349add5..f99889d0 100644 --- a/src/components/Pager/index.tsx +++ b/src/components/Pager/index.tsx @@ -1,20 +1,20 @@ -import { Block } from '../Block' +import { Block, BlockProps } from '../Block' import { Button } from '../Button' import { Spacer } from '../Spacer' -export type PagerProps = { +export type PagerProps = Omit & { nextHref: string | null prevHref: string | null } -export const Pager: React.FC = props => ( - - {!props.prevHref ? null : ( - +export const Pager: React.FC = ({ prevHref, nextHref, ...props }) => ( + + {!prevHref ? null : ( + )} - {!props.nextHref ? null : ( - + {!nextHref ? null : ( + )} )