mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Add Next.js ESLint (#425)
* Added Next.js eslint * added eslint to lint-staged * Added eslint config for prettier * Fixed eslint issues in multiple files * Fixed error in linter
This commit is contained in:
@@ -55,10 +55,13 @@ export default function FocusTrap({ children, focusFirst = false }: Props) {
|
||||
}
|
||||
}, [root, children])
|
||||
|
||||
return React.createElement('div', {
|
||||
ref: root,
|
||||
children,
|
||||
className: 'outline-none focus-trap',
|
||||
tabIndex: -1,
|
||||
})
|
||||
return React.createElement(
|
||||
'div',
|
||||
{
|
||||
ref: root,
|
||||
className: 'outline-none focus-trap',
|
||||
tabIndex: -1,
|
||||
},
|
||||
children
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user