[PWA-11] fix: pwa kanban layout block (#5426)

* fix: pwa kanban layout block

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2024-08-27 16:47:49 +05:30 committed by GitHub
parent a19226ac64
commit e3cd7050fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,6 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
const workspaceSlug = routerWorkspaceSlug?.toString();
// hooks
const { getIsIssuePeeked, setPeekIssue } = useIssueDetail();
const { isMobile } = usePlatformOS();
const handleIssuePeekOverview = (issue: TIssue) =>
workspaceSlug &&
@ -217,7 +216,7 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
{ "bg-custom-background-80 z-[100]": isCurrentBlockDragging }
)}
onClick={() => handleIssuePeekOverview(issue)}
disabled={!!issue?.tempId || isMobile}
disabled={!!issue?.tempId}
>
<RenderIfVisible
classNames="space-y-2 px-3 py-2"