Skip to content

Commit

Permalink
Change a link in Navigation CTA to docs (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus authored Nov 25, 2024
1 parent 2e4111a commit 0b9240c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-rivers-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@theguild/components": patch
---

Change a link in Navigation CTA to docs
12 changes: 9 additions & 3 deletions packages/components/src/components/hive-navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,15 @@ export function HiveNavigation({
>
Contact <span className="hidden xl:contents">us</span>
</CallToAction>
<CallToAction variant="primary" href="https://app.graphql-hive.com/" className="ml-4">
Sign in
</CallToAction>
{isHive ? (
<CallToAction variant="primary" href="https://app.graphql-hive.com/" className="ml-4">
Sign in
</CallToAction>
) : (
<CallToAction variant="primary" href="/docs" className="ml-4">
Docs
</CallToAction>
)}
</NavigationMenu>
</div>
);
Expand Down

0 comments on commit 0b9240c

Please sign in to comment.