mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-01-26 21:23:12 -08:00
added short circuit evaluation
This commit is contained in:
parent
59854dfe77
commit
8f2f796052
|
@ -7,7 +7,7 @@ export const HeaderText = ({type, text, link}): JSX.Element => {
|
|||
return (
|
||||
<Header className="anchor anchorWithHideOnScrollNavbar_node_modules-@docusaurus-theme-classic-lib-next-theme-Heading-styles-module">
|
||||
{text}
|
||||
{link ? <a className="hash-link" href={`#${link}`} title="Direct link to heading"/> : null}
|
||||
{link && <a className="hash-link" href={`#${link}`} title="Direct link to heading"/>}
|
||||
</Header>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue