fix: when finished pairing a machine open the machine status page with
this machine expanded refactor: simplify add machine page
This commit is contained in:
parent
c56d4759bd
commit
20370fcd1d
5 changed files with 39 additions and 44 deletions
|
|
@ -92,6 +92,7 @@ const DataTable = ({
|
|||
Details,
|
||||
className,
|
||||
expandable,
|
||||
shouldStartExpanded,
|
||||
onClick,
|
||||
...props
|
||||
}) => {
|
||||
|
|
@ -128,7 +129,10 @@ const DataTable = ({
|
|||
elements={elements}
|
||||
data={data[index]}
|
||||
Details={Details}
|
||||
expanded={index === expanded}
|
||||
expanded={
|
||||
index === expanded ||
|
||||
(shouldStartExpanded && shouldStartExpanded(data[index]))
|
||||
}
|
||||
expandRow={expandRow}
|
||||
expandable={expandable}
|
||||
onClick={onClick}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue