[PWA-11] fix: pwa kanban layout block (#5426)
* fix: pwa kanban layout block * chore: code refactor
This commit is contained in:
parent
a19226ac64
commit
e3cd7050fa
1 changed files with 1 additions and 2 deletions
|
|
@ -122,7 +122,6 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
|
||||||
const workspaceSlug = routerWorkspaceSlug?.toString();
|
const workspaceSlug = routerWorkspaceSlug?.toString();
|
||||||
// hooks
|
// hooks
|
||||||
const { getIsIssuePeeked, setPeekIssue } = useIssueDetail();
|
const { getIsIssuePeeked, setPeekIssue } = useIssueDetail();
|
||||||
const { isMobile } = usePlatformOS();
|
|
||||||
|
|
||||||
const handleIssuePeekOverview = (issue: TIssue) =>
|
const handleIssuePeekOverview = (issue: TIssue) =>
|
||||||
workspaceSlug &&
|
workspaceSlug &&
|
||||||
|
|
@ -217,7 +216,7 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
|
||||||
{ "bg-custom-background-80 z-[100]": isCurrentBlockDragging }
|
{ "bg-custom-background-80 z-[100]": isCurrentBlockDragging }
|
||||||
)}
|
)}
|
||||||
onClick={() => handleIssuePeekOverview(issue)}
|
onClick={() => handleIssuePeekOverview(issue)}
|
||||||
disabled={!!issue?.tempId || isMobile}
|
disabled={!!issue?.tempId}
|
||||||
>
|
>
|
||||||
<RenderIfVisible
|
<RenderIfVisible
|
||||||
classNames="space-y-2 px-3 py-2"
|
classNames="space-y-2 px-3 py-2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue