Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 26, 2023
1 parent e431e75 commit c692bbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/doc/common/docsectionnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function DocSectionNav({ docs = [] }) {
setActiveId(id);
hasHash && scrollToLabelById(id);
bindDocumentScrollListener();
}, [docs]);
}, []);

const createItem = ({ id, label, children }, level = 0) => {
const { basePath, pathname } = router;
Expand All @@ -85,7 +85,7 @@ export function DocSectionNav({ docs = [] }) {
<li key={id} className={classNames('navbar-item', { 'active-navbar-item': activeId === id })}>
<div className="navbar-item-content">
<Link href={href} legacyBehavior>
<button className="link-button" onClick={() => onClick(id)} title={label}>
<button type="button" className="link-button" onClick={() => onClick(id)} title={label}>
{label}
</button>
</Link>
Expand Down
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
reactStrictMode: true,
swcMinify: true
};

module.exports = nextConfig
module.exports = nextConfig;

0 comments on commit c692bbd

Please sign in to comment.