Skip to content

Commit

Permalink
feat: add external link
Browse files Browse the repository at this point in the history
  • Loading branch information
TwilightLogic committed Jun 6, 2024
1 parent 41cef59 commit 4a9b53f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion infra/rooch-portal/src/components/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ export const Banner: React.FC<BannerProps> = ({ onClose }) => {
<span className="sr-only">Rooch</span>
</span>
<span>
Rooch Portal is at the beta testing version. Learn More about {' '}
Rooch Portal is at the beta testing version. Learn More about{' '}
<a
href="https://rooch.network/learn/miscellaneous/portal"
target="_blank"
className="inline font-medium text-blue-600 underline dark:text-blue-500 underline-offset-2 decoration-600 dark:decoration-500 decoration-solid hover:text-blue-500 dark:hover:text-blue-400 transition-all"
rel="noreferrer"
>
Rooch Portal
</a>
Expand Down
6 changes: 4 additions & 2 deletions infra/rooch-portal/src/guard/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const SessionGuard = (props: SessionGuardProps) => {

setOpen(
sessionKey === null &&
navItems().find((item) => s.pathname.startsWith(item.path) && item.auth) !== undefined,
navItems().find((item) => s.pathname.startsWith(item.path) && item.auth) !== undefined,
)
}, [isConnected, s, sessionKey])

Expand All @@ -52,7 +52,9 @@ export const SessionGuard = (props: SessionGuardProps) => {
})

if (result === null) {
setError('Authorization failed due to insufficient gas fees. Please ensure you have enough gas fees.')
setError(
'Authorization failed due to insufficient gas fees. Please ensure you have enough gas fees.',
)
}
}

Expand Down

0 comments on commit 4a9b53f

Please sign in to comment.