Skip to content

Commit

Permalink
Update Header.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aoiacai authored Jun 9, 2024
1 parent b21a8f2 commit 2aae1e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function ResponsiveAppBar() {
>
{pages.map((page) => (
<MenuItem key={page} onClick={handleCloseNavMenu}>
<Typography textAlign="center" color='white'>{page}</Typography>
<ScrollLink to={page.toLowerCase()} smooth={true} duration={500} key={page}>
<Typography textAlign="center" color='white'>{page}</Typography>
</ScrollLink>

</MenuItem>
))}
</Menu>
Expand Down

0 comments on commit 2aae1e4

Please sign in to comment.