Skip to content

Commit

Permalink
[web] Allow DeviceCompactList receive HTML attrs
Browse files Browse the repository at this point in the history
By passing down to the <ul> HTML element all props other than `devices`.
This allows settings the `data-scrollbox` attribute if needed, among others.
  • Loading branch information
dgdavid committed Nov 26, 2023
1 parent 920856f commit b8d3865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/storage/device-utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ const DeviceLineItem = ({ device }) => {
);
};

const DeviceCompactList = ({ devices }) => {
const DeviceCompactList = ({ devices, ...others }) => {
return (
<ul>
<ul {...others }>
{ devices.map(device => (
<li key={device.sid}>
<DeviceLineItem device={device} />
Expand Down

0 comments on commit b8d3865

Please sign in to comment.