Web:Client:Pages:Home:Section:Body:TableView:TableRow Fixed undefined className
This commit is contained in:
parent
effed62662
commit
27025ac5d2
@ -17,6 +17,7 @@ import TypeCell from "./sub-components/TypeCell";
|
||||
import TagsCell from "./sub-components/TagsCell";
|
||||
import styled, { css } from "styled-components";
|
||||
import Base from "@docspace/components/themes/base";
|
||||
import { classNames } from "@docspace/components/utils/classNames";
|
||||
|
||||
const hotkeyBorderStyle = css`
|
||||
border-bottom: 1px solid;
|
||||
@ -399,18 +400,19 @@ const FilesTableRow = (props) => {
|
||||
availableColumns.includes("Activity") && !hideColumns;
|
||||
}
|
||||
|
||||
const idWithFileExst = item.fileExst
|
||||
? `${item.id}_${item.fileExst}`
|
||||
: item.id ?? "";
|
||||
|
||||
return (
|
||||
<StyledDragAndDrop
|
||||
id={id}
|
||||
data-title={item.title}
|
||||
value={value}
|
||||
className={`files-item ${className} ${item.id}_${item.fileExst} ${
|
||||
showHotkeyBorder
|
||||
? "table-hotkey-border"
|
||||
: checkedProps || isActive
|
||||
? "table-row-selected"
|
||||
: ""
|
||||
}`}
|
||||
className={classNames("files-item", className, idWithFileExst, {
|
||||
["table-hotkey-border"]: showHotkeyBorder,
|
||||
["table-row-selected"]: !showHotkeyBorder && (checkedProps || isActive),
|
||||
})}
|
||||
onDrop={onDrop}
|
||||
onMouseDown={onMouseDown}
|
||||
dragging={dragging && isDragging}
|
||||
@ -445,7 +447,10 @@ const FilesTableRow = (props) => {
|
||||
>
|
||||
<TableCell
|
||||
{...dragStyles}
|
||||
className={`${selectionProp?.className} table-container_file-name-cell`}
|
||||
className={classNames(
|
||||
selectionProp?.className,
|
||||
"table-container_file-name-cell"
|
||||
)}
|
||||
value={value}
|
||||
>
|
||||
<FileNameCell
|
||||
@ -586,7 +591,10 @@ const FilesTableRow = (props) => {
|
||||
!buttonsAvailableDrag ? { background: "none" } : dragStyles.style
|
||||
}
|
||||
{...selectionProp}
|
||||
className={`${selectionProp?.className} table-container_quick-buttons-wrapper`}
|
||||
className={classNames(
|
||||
selectionProp?.className,
|
||||
"table-container_quick-buttons-wrapper"
|
||||
)}
|
||||
>
|
||||
<StyledQuickButtonsContainer>
|
||||
{quickButtonsComponent}
|
||||
|
Loading…
Reference in New Issue
Block a user