Show doc names instead of previous and next

Use the previous and next doc metadata to show docs in the buttons
This commit is contained in:
Joel Marcey 2017-10-24 15:35:56 -07:00
parent 2b7a35dc3d
commit 7c1b48b92c

View file

@ -63,7 +63,7 @@ class DocsLayout extends React.Component {
{i18n {i18n
? translation[this.props.metadata.language][ ? translation[this.props.metadata.language][
"localized-strings" "localized-strings"
]["previous"] || "Previous" ][metadata.previous_id] || metadata.previous_id
: "Previous"} : "Previous"}
</a> </a>
)} )}
@ -74,7 +74,7 @@ class DocsLayout extends React.Component {
{i18n {i18n
? translation[this.props.metadata.language][ ? translation[this.props.metadata.language][
"localized-strings" "localized-strings"
]["next"] || "Next" ][metadata.next_id] || metadata.next_id
: "Next"}{" "} : "Next"}{" "}
</a> </a>