From fd68dd5bc2be3c5617a420c6d27ea974bc528004 Mon Sep 17 00:00:00 2001 From: arunvjn <32433245+arunvjn@users.noreply.github.com> Date: Mon, 30 May 2022 09:25:18 +0530 Subject: [PATCH] chore: changed edit/launch button to links in applications dashboard. (#14111) --- app/client/src/pages/Applications/ApplicationCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/client/src/pages/Applications/ApplicationCard.tsx b/app/client/src/pages/Applications/ApplicationCard.tsx index cb76798af9..f9e1004726 100644 --- a/app/client/src/pages/Applications/ApplicationCard.tsx +++ b/app/client/src/pages/Applications/ApplicationCard.tsx @@ -801,14 +801,15 @@ export function ApplicationCard(props: ApplicationCardProps) { { + e.preventDefault(); e.stopPropagation(); history.push(editApplicationURL); }} size={Size.medium} - tag="button" text="Edit" /> )} @@ -817,14 +818,15 @@ export function ApplicationCard(props: ApplicationCardProps) { category={Category.tertiary} className="t--application-view-link" fill + href={viewApplicationURL} icon={"rocket"} iconPosition={IconPositions.left} onClick={(e) => { + e.preventDefault(); e.stopPropagation(); history.push(viewApplicationURL); }} size={Size.medium} - tag="button" text="Launch" /> )}