Commit 5a607d7d authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas

fix(headertest): fix header for test

parent 40baa8e1
......@@ -45,15 +45,17 @@ const WaxHeader = ({ bookComponent }) => {
const { nextBookComponent, prevBookComponent } = bookComponent
return (
<Header>
<div data-testid="previous-component">
{prevBookComponent &&
withLink(prevBookComponent.title, createUrl(prevBookComponent))}
</div>
{prevBookComponent && (
<div data-testid="previous-component">
withLink(prevBookComponent.title, createUrl(prevBookComponent))
</div>
)}
{header}
<div data-testid="next-component">
{nextBookComponent &&
withLink(nextBookComponent.title, createUrl(nextBookComponent))}
</div>
{nextBookComponent && (
<div data-testid="next-component">
withLink(nextBookComponent.title, createUrl(nextBookComponent))
</div>
)}
</Header>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment