Skip to content

Commit

Permalink
docs(pagination): ✏️ update types on storybook component
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Nov 5, 2020
1 parent 115f9e9 commit 52730d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pagination/stories/Pagination.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ import {
PaginationButton,
usePaginationState,
PaginationInitialState,
TGoto,
} from "renderless-components";

type TGoto = "nextPage" | "prevPage" | "lastPage" | "firstPage" | number;

export interface AppProps extends PaginationInitialState {}

export const App = (props: AppProps) => {
export const App: React.FC<PaginationInitialState> = props => {
const state = usePaginationState({ count: 10, ...props });

return (
Expand Down

0 comments on commit 52730d6

Please sign in to comment.