Skip to content

Commit b5f6051

Browse files
committed
fix /lint
1 parent 193eb31 commit b5f6051

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

ui/src/components/lib/tabs-panel/tabs-panel.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ export const TabsPanel = <T extends boolean = false>({
4646
<>
4747
<PanelHeader className={cn(styles.tabsPanel, className)} transparent={mode === 'plain'}>
4848
<Tabs>
49-
{content.map((tab) => {
50-
return (
51-
<ConditionalRender key={tab.id} conditions={[!tab.disabled]}>
49+
{content.map((tab) => (
50+
<ConditionalRender key={tab.id} conditions={[!tab.disabled]}>
5251
<TabsItem
5352
key={tab.id}
5453
aria-controls={tab.ariaControls}
@@ -61,10 +60,8 @@ export const TabsPanel = <T extends boolean = false>({
6160
>
6261
{t(tab.title)}
6362
</TabsItem>
64-
</ConditionalRender>
65-
)
66-
}
67-
)}
63+
</ConditionalRender>
64+
))}
6865
</Tabs>
6966
</PanelHeader>
7067
{content.map((tab) => (

ui/src/components/ui/device/device-screen/screens/inspector/tabs/dom-tab/dom-tab-content.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ const DOMNodeComponent = observer(({ node }: { node: DOMNode }) => {
141141

142142
{hasChildren && !isCollapsed && (
143143
<div className={styles.children}>
144-
{node.children?.map((child) => <DOMNodeComponent key={child.id} node={child} />)}
144+
{node.children?.map((child) => (
145+
<DOMNodeComponent key={child.id} node={child} />
146+
))}
145147
</div>
146148
)}
147149

0 commit comments

Comments
 (0)