Skip to content

Commit bd2f0fd

Browse files
committed
feat(download): add getDownloadUrl prop to LeftPanel and DesignTable components
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent aa50ed4 commit bd2f0fd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/custom/CatalogDetail/LeftPanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ interface LeftPanelProps {
2727
handleInfoClick?: () => void;
2828
showDeleteAction?: boolean;
2929
handleDelete: () => void;
30+
getDownloadUrl: (sorceType: string, id: string) => string;
3031
}
3132

3233
const LeftPanel: React.FC<LeftPanelProps> = ({
@@ -48,7 +49,8 @@ const LeftPanel: React.FC<LeftPanelProps> = ({
4849
showInfoAction = false,
4950
handleInfoClick,
5051
showDeleteAction = false,
51-
handleDelete
52+
handleDelete,
53+
getDownloadUrl
5254
}) => {
5355
const theme = useTheme();
5456

@@ -95,6 +97,7 @@ const LeftPanel: React.FC<LeftPanelProps> = ({
9597
handleInfoClick={handleInfoClick}
9698
showDeleteAction={showDeleteAction}
9799
handleDelete={handleDelete}
100+
getDownloadUrl={getDownloadUrl}
98101
/>
99102
{showTechnologies && (
100103
<TechnologySection

src/custom/Workspaces/DesignTable.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface DesignTableProps {
3939
workspaceName: string,
4040
workspaceId: string
4141
) => void;
42+
getDownloadUrl: (sorceType: string, id: string) => string;
4243
handlePublish: (publishModal: PublishModalState, data: any) => void;
4344
publishModalHandler: any;
4445
handleUnpublishModal: (design: Pattern, modalRef: React.RefObject<any>) => void;
@@ -83,6 +84,7 @@ const DesignTable: React.FC<DesignTableProps> = ({
8384
handleShowDetails,
8485
handleUnpublishModal,
8586
handleWorkspaceDesignDeleteModal,
87+
getDownloadUrl,
8688
publishModalHandler,
8789
isCopyLinkAllowed,
8890
isDeleteAllowed,
@@ -122,6 +124,7 @@ const DesignTable: React.FC<DesignTableProps> = ({
122124
handleCopyUrl,
123125
handleClone,
124126
handleShowDetails,
127+
getDownloadUrl,
125128
isCopyLinkAllowed,
126129
isDeleteAllowed,
127130
isDownloadAllowed,

0 commit comments

Comments
 (0)