Web: Components: rewrite fill on class
This commit is contained in:
parent
95c773e28e
commit
ef40908652
@ -178,8 +178,6 @@ const StyledTableRow = styled.div`
|
||||
`;
|
||||
|
||||
const StyledTableCell = styled.div`
|
||||
background: ${(props) => props.checked && "#f8f9f9 !important"};
|
||||
cursor: ${(props) => props.checked && "pointer"};
|
||||
/* padding-right: 8px; */
|
||||
height: 40px;
|
||||
max-height: 40px;
|
||||
|
@ -2,12 +2,11 @@ import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { StyledTableCell } from "./StyledTableContainer";
|
||||
|
||||
const TableCell = ({ className, forwardedRef, checked, ...rest }) => {
|
||||
const TableCell = ({ className, forwardedRef, ...rest }) => {
|
||||
return (
|
||||
<StyledTableCell
|
||||
className={`${className} table-container_cell`}
|
||||
ref={forwardedRef}
|
||||
checked={checked}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
@ -16,7 +15,6 @@ const TableCell = ({ className, forwardedRef, checked, ...rest }) => {
|
||||
TableCell.propTypes = {
|
||||
className: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
||||
forwardedRef: PropTypes.shape({ current: PropTypes.any }),
|
||||
checked: PropTypes.bool,
|
||||
};
|
||||
|
||||
export default TableCell;
|
||||
|
@ -57,7 +57,7 @@ const TableRow = (props) => {
|
||||
checked={checked}
|
||||
{...selectionProp}
|
||||
style={style}
|
||||
className={`${selectionProp?.className} table-container_row-checkbox-wrapper`}
|
||||
className={`${selectionProp?.className} table-container_row-checkbox-wrapper table_cell`}
|
||||
>
|
||||
<div className="table-container_element">{element}</div>
|
||||
<Checkbox
|
||||
@ -72,7 +72,7 @@ const TableRow = (props) => {
|
||||
{...selectionProp}
|
||||
style={style}
|
||||
forwardedRef={row}
|
||||
checked={checked}
|
||||
className="table_cell"
|
||||
>
|
||||
<ContextMenu ref={cm} model={contextOptions}></ContextMenu>
|
||||
{renderContext ? (
|
||||
|
Loading…
Reference in New Issue
Block a user