Skip to content

Commit 0b9240c

Browse files
authored
Change a link in Navigation CTA to docs (#1838)
1 parent 2e4111a commit 0b9240c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.changeset/tiny-rivers-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@theguild/components": patch
3+
---
4+
5+
Change a link in Navigation CTA to docs

packages/components/src/components/hive-navigation/index.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,15 @@ export function HiveNavigation({
180180
>
181181
Contact <span className="hidden xl:contents">us</span>
182182
</CallToAction>
183-
<CallToAction variant="primary" href="https://app.graphql-hive.com/" className="ml-4">
184-
Sign in
185-
</CallToAction>
183+
{isHive ? (
184+
<CallToAction variant="primary" href="https://app.graphql-hive.com/" className="ml-4">
185+
Sign in
186+
</CallToAction>
187+
) : (
188+
<CallToAction variant="primary" href="/docs" className="ml-4">
189+
Docs
190+
</CallToAction>
191+
)}
186192
</NavigationMenu>
187193
</div>
188194
);

0 commit comments

Comments
 (0)