chore(docs): Fix prettier warnings (#2952)
* chore(docs): Fix prettier warnings
This commit is contained in:
parent
461f5c832f
commit
cb00077273
7 changed files with 24 additions and 16 deletions
|
|
@ -20,10 +20,9 @@ function itemIds(item: HardwareMetadata) {
|
|||
if (item.type == "board" || item.type == "shield") {
|
||||
const nodes = (item.siblings ?? [item.id])
|
||||
.map((id) => <code key={id}>{id}</code>)
|
||||
.reduce<ElementOrString[]>(
|
||||
(prev, curr, index) => [...prev, index > 0 ? ", " : "", curr],
|
||||
[]
|
||||
);
|
||||
.reduce<
|
||||
ElementOrString[]
|
||||
>((prev, curr, index) => [...prev, index > 0 ? ", " : "", curr], []);
|
||||
return <span key={item.id}>{nodes}</span>;
|
||||
} else {
|
||||
return <code key={item.id}>{item.id}</code>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue