Skip to content

Commit

Permalink
Merge pull request #171 from aitok-ai/jinshi/hide-refer
Browse files Browse the repository at this point in the history
swap order to show User profile/logout button
  • Loading branch information
jinzishuai authored Feb 25, 2024
2 parents 8c7aeaa + ad75ce9 commit 25bf11e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions client/src/components/Nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,18 +314,19 @@ export default function Nav({ navVisible, setNavVisible }) {
text={localize('com_ui_referrals_leaderboard')}
clickHandler={user ? openLeaderboardHandler : navigateToRegister}
/>
{window.location.hostname !== "drhu.aitok.ai" && (
<NavLink
className="flex w-full cursor-pointer items-center gap-3 rounded-none px-3 py-3 text-sm text-white transition-colors duration-200 hover:bg-gray-700"
svg={() => (copied ? <CheckMark /> : <Clipboard />)}
text={
copied
? localize('com_ui_copied_success')
: localize('com_ui_copy_invitation_link')
}
clickHandler={user ? copyLinkHandler : navigateToRegister}
/>
{window.location.hostname !== 'drhu.aitok.ai' && (
<NavLink
className="flex w-full cursor-pointer items-center gap-3 rounded-none px-3 py-3 text-sm text-white transition-colors duration-200 hover:bg-gray-700"
svg={() => (copied ? <CheckMark /> : <Clipboard />)}
text={
copied
? localize('com_ui_copied_success')
: localize('com_ui_copy_invitation_link')
}
clickHandler={user ? copyLinkHandler : navigateToRegister}
/>
)}
<NavLinks />
</nav>
</div>
</div>
Expand Down

0 comments on commit 25bf11e

Please sign in to comment.