Skip to content

Commit

Permalink
docs(underlinenav2): fix typos (#3190)
Browse files Browse the repository at this point in the history
* docs(underlinenav2): fix typos

* fix: correct component name

---------

Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
lonr and joshblack authored Apr 24, 2023
1 parent 8101657 commit 9e204d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/content/drafts/UnderlineNav2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function UnderlineNavItem({href, children, ...rest}) {
const router = useRouter()
const isCurrent = typeof href === 'string' ? router.asPath === href : router.pathname === href.pathname
return (
<UnderlineNav.Item s={Link} href={href} aria-current={isCurrent ? 'page' : undefined} {...rest}>
<UnderlineNav.Item as={Link} href={href} aria-current={isCurrent ? 'page' : undefined} {...rest}>
{children}
</UnderlineNav.Item>
)
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/src/components/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {UnderlineNav} from '@primer/react/drafts'
import {useRouter} from 'next/router'
import Link from 'next/link'

export default function Layout() {
export default function Navigation() {
const items = [
{navigation: 'Code', href: '/tabs/code', icon: CodeIcon},
{
Expand Down
5 changes: 0 additions & 5 deletions src/UnderlineNav2/UnderlineNav2.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@
"type": "React.ElementType",
"defaultValue": "\"a\""
},
{
"name": "as",
"type": "React.ElementType",
"defaultValue": "\"a\""
},
{
"name": "sx",
"type": "SystemStyleObject"
Expand Down

0 comments on commit 9e204d1

Please sign in to comment.