Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
PageShell.propTypes = {
meta: PropTypes.object,
frontMatter: PropTypes.shape({
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired
}).isRequired,
children: PropTypes.node.isRequired,
// From withLocation
location: PropTypes.shape({
pathname: PropTypes.string.isRequired
}).isRequired
};
export default withLocation(PageShell);
<a href="{post.path}">
{post.frontMatter.title}
</a>
);
})}
<div style="{{">
Horse names: {horseNames.join(', ')}
</div>
);
}
}
export default withLocation(Home);
>
<div>
{this.props.children}
</div>
{activeTab !== 'overview' ? <div>
</div> : ''}
);
}
}
export default withLocation(PageShell);