mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
Better logic
This commit is contained in:
parent
7c1b48b92c
commit
78bd09dec3
1 changed files with 14 additions and 4 deletions
|
@ -63,8 +63,13 @@ class DocsLayout extends React.Component {
|
|||
{i18n
|
||||
? translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
][metadata.previous_id] || metadata.previous_id
|
||||
: "Previous"}
|
||||
][metadata.previous_id] ||
|
||||
translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
]["previous"] ||
|
||||
"Previous"
|
||||
: metadata.previous_id || "Previous"
|
||||
}
|
||||
</a>
|
||||
)}
|
||||
{metadata.next_id && (
|
||||
|
@ -74,8 +79,13 @@ class DocsLayout extends React.Component {
|
|||
{i18n
|
||||
? translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
][metadata.next_id] || metadata.next_id
|
||||
: "Next"}{" "}
|
||||
][metadata.next_id] ||
|
||||
translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
]["next"] ||
|
||||
"Next"
|
||||
: metadata.next_id || "Next"
|
||||
}{" "}
|
||||
→
|
||||
</a>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue