lint fixes for react-components
This commit is contained in:
parent
f27aacc152
commit
3503d97fae
18 changed files with 38 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue