|
|
@@ -12,7 +12,7 @@ import Button from '@mui/material/Button';
|
|
|
import Tooltip from '@mui/material/Tooltip';
|
|
|
import MenuItem from '@mui/material/MenuItem';
|
|
|
import AdbIcon from '@mui/icons-material/Adb';
|
|
|
-import { Link } from 'react-router-dom';
|
|
|
+import Link from'next/link';
|
|
|
|
|
|
const pages = ['Donation', 'callender','temp-page2','temp-page3','temp-page4'];
|
|
|
const settings = ['Profile', 'Account', 'Dashboard', 'Logout'];
|
|
|
@@ -91,7 +91,7 @@ const ResponsiveAppBar = () => {
|
|
|
{pages.map((page) => (
|
|
|
<MenuItem key={page} onClick={handleCloseNavMenu}>
|
|
|
<Typography textAlign="center">
|
|
|
- <Link to = {`/${page}`}
|
|
|
+ <Link href = {`/${page}`}
|
|
|
style={{textDecoration:"none",color:"white"}}>
|
|
|
{page}
|
|
|
</Link>
|
|
|
@@ -126,7 +126,7 @@ const ResponsiveAppBar = () => {
|
|
|
onClick={handleCloseNavMenu}
|
|
|
sx={{ my: 2, color: 'white', display: 'block' }}
|
|
|
>
|
|
|
- <Link to = {`/${page}`}
|
|
|
+ <Link href = {`/${page}`}
|
|
|
style={{textDecoration:"none",color:"white"}}>
|
|
|
{page}
|
|
|
</Link>
|