forked from milzipmoza-developers/tecobrary-admin-client-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[milzipmoza-developers#3] feat - 도서 목록 조회 페이지 리팩토링
- Loading branch information
1 parent
d9701bf
commit 439b86f
Showing
7 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import BookListPageContext from "../../contexts/BookListPageContext"; | ||
import BookListPageButtons from "../molecules/BookListPageButtons"; | ||
import * as React from "react"; | ||
|
||
|
||
const BookListCardFooter = ({page, onPageDown, onPageUp}) => ( | ||
<BookListPageContext.Provider value={{page, onPageDown, onPageUp}}> | ||
<BookListPageButtons/> | ||
</BookListPageContext.Provider> | ||
); | ||
|
||
export default BookListCardFooter; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import BookListCardFooter from "../organisms/BookListCardFooter"; | ||
import Divider from "../atoms/Divider"; | ||
import BookListCardHeader from "../molecules/BookListCardHeader"; | ||
import {Card} from "react-bootstrap"; | ||
|
||
interface IProps { | ||
title: string; | ||
page: number; | ||
onPageDown: any; | ||
onPageUp: any; | ||
children: any; | ||
} | ||
|
||
const BookListCardTemplate = ({title, page, onPageDown, onPageUp, children}: IProps) => { | ||
return ( | ||
<Card> | ||
<BookListCardHeader>{title}</BookListCardHeader> | ||
{children} | ||
<Divider/> | ||
<BookListCardFooter page={page} onPageDown={onPageDown} onPageUp={onPageUp}/> | ||
</Card> | ||
) | ||
}; | ||
|
||
export default BookListCardTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters