1
0
Fork 0

lint fixes for react-components

This commit is contained in:
Enoch Riese 2023-06-07 10:06:30 -05:00
parent f27aacc152
commit 3503d97fae
18 changed files with 38 additions and 9 deletions

View file

@ -1,14 +1,14 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { getId, getProps } from './utils.mjs'
export const Path = ({ stackName, pathName, path, partName, part, settings, components, t }) => {
export const Path = ({ stackName, pathName, path, partName, settings, components, t }) => {
// Don't render hidden paths
if (path.hidden) return null
// Get potentially swizzled components
const { TextOnPath } = components
const output = []
const pathId = getId({ settings, stackName, partName, pathName })
return (
@ -19,6 +19,4 @@ export const Path = ({ stackName, pathName, path, partName, part, settings, comp
) : null}
</>
)
return output
}