Skip to content

Commit

Permalink
Disable link scroll to top
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed Dec 22, 2023
1 parent 36f5b19 commit 76af61d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/landing/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Header({ miscellaneous }: HeaderProps) {
variants={slideInFromTop(0.1)}
className='flex flex-col justify-start items-center'
>
<Link href='/'>
<Link href='/' scroll={false}>
<h2 className='text-3xl xs:text-4xl sm:text-[2.5rem] font-medium leading-7 py-4'>
Mohamad Salimi
</h2>
Expand Down
1 change: 1 addition & 0 deletions components/secured/view-website.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function ViewWebsite({ newTab = false }: ViewWebsiteProps) {
>
<Link
href='/'
scroll={false}
target={`${!newTab ? '_blank' : '_self'}`}
rel='noopener noreferer'
>
Expand Down

0 comments on commit 76af61d

Please sign in to comment.