From 9996fa3f8b11edd5da0d16185c44822ddfec9233 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Wed, 19 Jun 2024 15:14:43 -0400 Subject: [PATCH] feat: disable sync icon for local folders --- package-lock.json | 4 ++-- src/components/folder-item/folder-item.tsx | 4 +++- src/components/folder-view.tsx | 3 +++ src/pages/content.tsx | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1adb77c0..6577271d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.17", + "version": "1.0.0-dev.18", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.17", + "version": "1.0.0-dev.18", "license": "AGPL-3.0-only", "dependencies": { "@powerhousedao/design-system": "1.0.0-alpha.139", diff --git a/src/components/folder-item/folder-item.tsx b/src/components/folder-item/folder-item.tsx index e48de284..3e42ae4d 100644 --- a/src/components/folder-item/folder-item.tsx +++ b/src/components/folder-item/folder-item.tsx @@ -14,6 +14,7 @@ export interface FolderItemProps { onFolderSelected: (itemId: string) => void; isAllowedToCreateDocuments: boolean; folderItemOptions: ConnectDropdownMenuItem[]; + isRemoteDrive?: boolean; onFolderOptionsClick?: ( optionId: string, fileNode: TreeItem, @@ -27,6 +28,7 @@ export const FolderItem: React.FC = props => { decodedDriveID, onFolderSelected, folderItemOptions, + isRemoteDrive = false, onFolderOptionsClick = () => {}, isAllowedToCreateDocuments, } = props; @@ -44,7 +46,7 @@ export const FolderItem: React.FC = props => { return ( void; onFileSelected: (drive: string, id: string) => void; onFileDeleted: (drive: string, id: string) => void; + isRemoteDrive?: boolean; } export const FolderView: React.FC = ({ @@ -27,6 +28,7 @@ export const FolderView: React.FC = ({ onFileDeleted, onFileSelected, onFolderSelected, + isRemoteDrive = false, }) => { const { t } = useTranslation(); const { folders, files } = useFolderContent(path); @@ -59,6 +61,7 @@ export const FolderView: React.FC = ({ { path={selectedPath || ''} folderItem={selectedFolder} decodedDriveID={decodedDriveID} + isRemoteDrive={isRemoteDrive} onFolderSelected={ onFolderSelectedHandler }