1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00

use React.forwardRef

This commit is contained in:
Nebel 2020-02-09 03:01:12 +09:00
parent 8c9a40cfed
commit b8c39168a0

View file

@ -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>