Skip to content

Commit

Permalink
Hide share link command and disable menu item for now
Browse files Browse the repository at this point in the history
  • Loading branch information
franknoirot committed Jan 22, 2025
1 parent 0477e46 commit 58483b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ProjectSidebarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useAbsoluteFilePath } from 'hooks/useAbsoluteFilePath'
import Tooltip from './Tooltip'
import { copyFileShareLink } from 'lib/links'
import { useSettingsAuthContext } from 'hooks/useSettingsAuthContext'
import { DEV } from 'env'

const ProjectSidebarMenu = ({
project,
Expand Down Expand Up @@ -187,6 +188,7 @@ function ProjectMenuPopover({
id: 'share-link',
Element: 'button',
children: 'Share link to file',
disabled: !DEV,
onClick: async () => {
await copyFileShareLink({
token: auth?.context.token || '',
Expand Down
1 change: 1 addition & 0 deletions src/lib/kclCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export function kclCommands(commandProps: KclCommandConfig): Command[] {
groupId: 'code',
needsReview: false,
icon: 'link',
hide: 'both',
onSubmit: () => {
copyFileShareLink({
token: commandProps.authToken,
Expand Down

0 comments on commit 58483b4

Please sign in to comment.