diff --git a/client/js/components/book/page.jsx b/client/js/components/book/page.jsx index a8d48e5..f604a98 100644 --- a/client/js/components/book/page.jsx +++ b/client/js/components/book/page.jsx @@ -28,6 +28,13 @@ const select = (state) => { }; }; +const svg = ( + + + +); + + export class Page extends React.Component { static propTypes = { @@ -36,7 +43,6 @@ export class Page extends React.Component { tocMeta: React.PropTypes.shape({ gradeUnit: React.PropTypes.string, subjectLesson: React.PropTypes.string, - lastModified: React.PropTypes.string, }), locale: React.PropTypes.string, videoPlay: React.PropTypes.func, @@ -288,9 +294,6 @@ export class Page extends React.Component { } render() { - const lastModified = this.props.tocMeta.lastModified; - const footerText = lastModified ? `CLIx release date: ${lastModified}` : undefined; - let previousButton; let nextButton; const { tableOfContents, params } = this.props; @@ -300,69 +303,96 @@ export class Page extends React.Component { item => item.id === params.pageId ); - if (currentPageIndex > -1 && currentPageIndex !== 0) { + if (currentPageIndex > -1) { // show Previous button - previousButton = ( - - ); - } + previousButton = (currentPageIndex === 0) + ? ( + + ) : + ( + + ); - if (currentPageIndex > -1 && currentPageIndex !== tableOfContents.length - 1) { // show Next button - nextButton = ( - - ); + nextButton = (currentPageIndex === tableOfContents.length - 1) + ? ( + + ) : + ( + + ); } } let bibliography; + let drawer; if (this.props.bibliography) { bibliography = ( ); - } - let drawer; - - if (this.props.bibliography) { drawer = ( - - - -