Skip to content

Commit 2286d57

Browse files
author
FalkWolsky
committed
Github Header only for Devs and Admins
1 parent b649fa9 commit 2286d57

File tree

1 file changed

+11
-9
lines changed
  • client/packages/lowcoder/src/pages/common

1 file changed

+11
-9
lines changed

client/packages/lowcoder/src/pages/common/header.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -718,15 +718,17 @@ export function AppHeader() {
718718
const headerEnd = (
719719
<Row align="middle" gutter={32}>
720720
<Col style={{marginTop : "6px"}}>
721-
<GitHubButton
722-
href="https://github.com/lowcoder-org/lowcoder"
723-
data-color-scheme="no-preference: light; light: light; dark: dark;"
724-
data-size="small"
725-
data-show-count="true"
726-
aria-label="Star lowcoder-org/lowcoder on GitHub"
727-
>
728-
Star
729-
</GitHubButton>
721+
{user.orgDev && (
722+
<GitHubButton
723+
href="https://github.com/lowcoder-org/lowcoder"
724+
data-color-scheme="no-preference: light; light: light; dark: dark;"
725+
data-size="small"
726+
data-show-count="true"
727+
aria-label="Star lowcoder-org/lowcoder on GitHub"
728+
>
729+
Star
730+
</GitHubButton>
731+
)}
730732
</Col>
731733
<Col>
732734
<HeaderProfile user={user} />

0 commit comments

Comments
 (0)