-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEOS-500, NEOS-554 clicking home should route to home page for curren…
…tly (#1006)
- Loading branch information
Showing
12 changed files
with
114 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { PageProps } from '@/components/types'; | ||
import { ReactElement } from 'react'; | ||
import BaseLayout from './BaseLayout'; | ||
import AccountPage from './[account]/page'; | ||
|
||
export default function Home(props: PageProps): ReactElement { | ||
export default function Home(): ReactElement { | ||
return ( | ||
<BaseLayout> | ||
<AccountPage {...props} /> | ||
<AccountPage /> | ||
</BaseLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function shouldHighlightPathName(href: string, pathname: string): boolean { | ||
if (href === '/' && pathname === '/') { | ||
return true; | ||
} | ||
return href !== '/' && pathname.includes(href); | ||
} | ||
|
||
export function getPathNameHighlight(href: string, pathname: string): string { | ||
return shouldHighlightPathName(href, pathname) | ||
? 'text-foreground' | ||
: 'text-foreground/60'; | ||
} |
52ce895
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
neosync-marketing – ./marketing
neosync-marketing-neosync.vercel.app
neosync-marketing-git-main-neosync.vercel.app
www.neosync.dev
neosync-marketing-app.vercel.app
neosync.dev