mirror of
https://github.com/zadam/trilium.git
synced 2025-11-27 02:54:25 +01:00
refactor(react/promoted_attributes): remove unnecessary action cell
This commit is contained in:
parent
cd164049b7
commit
891e71aec6
@ -134,7 +134,6 @@ function PromotedAttributeCell(props: CellProps) {
|
|||||||
<div className={clsx("promoted-attribute-cell", className)}>
|
<div className={clsx("promoted-attribute-cell", className)}>
|
||||||
{definition.labelType !== "boolean" && <label for={inputId}>{definition.promotedAlias ?? valueName}</label>}
|
{definition.labelType !== "boolean" && <label for={inputId}>{definition.promotedAlias ?? valueName}</label>}
|
||||||
{correspondingInput}
|
{correspondingInput}
|
||||||
<ActionCell />
|
|
||||||
<MultiplicityCell {...props} />
|
<MultiplicityCell {...props} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@ -279,14 +278,6 @@ function RelationInput({ inputId, ...props }: CellProps & { inputId: string }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function ActionCell() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function MultiplicityCell({ cell, cells, setCells, setCellToFocus, note, componentId }: CellProps) {
|
function MultiplicityCell({ cell, cells, setCells, setCellToFocus, note, componentId }: CellProps) {
|
||||||
return (cell.definition.multiplicity === "multi" &&
|
return (cell.definition.multiplicity === "multi" &&
|
||||||
<td className="multiplicity">
|
<td className="multiplicity">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user