Skip to content

Commit

Permalink
feat(catalog): feat add warning when cloning to full namespace (#1466)
Browse files Browse the repository at this point in the history
Because

- Add warning when trying to clone to full namespace
  • Loading branch information
thewbuk authored Sep 20, 2024
1 parent d2cedf2 commit 67671c7
Show file tree
Hide file tree
Showing 9 changed files with 331 additions and 154 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type Catalog = {
totalFiles: number;
totalTokens: number;
usedStorage: number;
ownerId: string;
};

export type FileSnippet = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type CatalogCardMenuProps = {
onDelete: (e: React.MouseEvent) => void;
onEdit: (e: React.MouseEvent) => void;
onClone: (e: React.MouseEvent) => void;
disabled: boolean;
isOpen: boolean;
setIsOpen: (isOpen: boolean) => void;
};
Expand All @@ -20,7 +19,6 @@ export const CatalogCardMenu = ({
onDelete,
onEdit,
onClone,
disabled,
isOpen,
setIsOpen,
}: CatalogCardMenuProps) => {
Expand All @@ -46,7 +44,6 @@ export const CatalogCardMenu = ({
<DropdownMenu.Item
onClick={onClone}
className="!px-4 !py-2.5 !text-semantic-fg-secondary product-body-text-4-medium"
disabled={disabled}
>
<Icons.Copy07 className="mr-2 h-4 w-4 stroke-semantic-fg-secondary" />
Clone
Expand Down
Loading

0 comments on commit 67671c7

Please sign in to comment.