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