mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
use forwardRef
This commit is contained in:
parent
b8c39168a0
commit
2d1f516bd3
1 changed files with 2 additions and 2 deletions
|
@ -26,12 +26,12 @@ const TopAppBar = () => {
|
|||
key={pathname}
|
||||
value={pathname}
|
||||
icon={icon}
|
||||
component={React.forwardRef(props => (
|
||||
component={React.forwardRef<HTMLAnchorElement, {}>((props, ref) => (
|
||||
<Link
|
||||
href={pathname}
|
||||
as={`${process.env.NEXT_BASE_PATH}${pathname}`}
|
||||
>
|
||||
<a {...props} />
|
||||
<a ref={ref} {...props} />
|
||||
</Link>
|
||||
))}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue