forked from kofal.net/zmk
chore(docs): Fix prettier warnings (#2952)
* chore(docs): Fix prettier warnings
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -10,8 +10,12 @@ interface InterconnectTabsProps {
|
||||
}
|
||||
|
||||
function mapInterconnect(interconnect: Interconnect, gpio: boolean) {
|
||||
const content = require(`@site/src/data/interconnects/${interconnect.id}/design_guideline.md`);
|
||||
const imageUrl = require(`@site/docs/assets/interconnects/${interconnect.id}/pinout.png`);
|
||||
const content = require(
|
||||
`@site/src/data/interconnects/${interconnect.id}/design_guideline.md`
|
||||
);
|
||||
const imageUrl = require(
|
||||
`@site/docs/assets/interconnects/${interconnect.id}/pinout.png`
|
||||
);
|
||||
return (
|
||||
<TabItem value={interconnect.id} key={interconnect.id}>
|
||||
<img src={imageUrl.default} />
|
||||
|
||||
Reference in New Issue
Block a user