mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +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}
|
||||
value={pathname}
|
||||
icon={icon}
|
||||
component={props => (
|
||||
component={React.forwardRef(props => (
|
||||
<Link
|
||||
href={pathname}
|
||||
as={`${process.env.NEXT_BASE_PATH}${pathname}`}
|
||||
>
|
||||
<a {...props} />
|
||||
</Link>
|
||||
)}
|
||||
))}
|
||||
/>
|
||||
))}
|
||||
</Tabs>
|
||||
|
|
Loading…
Add table
Reference in a new issue