Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed Sep 16, 2021
1 parent f5c1a5e commit 4ff04a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
1 change: 0 additions & 1 deletion packages/store-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
],
"dependencies": {
"@reach/popover": "^0.16.0",
"ally.js": "^1.4.1",
"react-swipeable": "^6.1.2",
"tabbable": "^5.2.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/store-ui/src/molecules/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const ModalContent = ({ children, ...props }: ModalContentProps) => {
role="dialog"
tabIndex={-1}
{...props}
onClick={composeEventHandler(undefined, (event) => {
onClick={(event: MouseEvent) => {
event.stopPropagation()
})}
}}
>
{children}
</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/store-ui/src/molecules/Modal/useTrapFocus.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useRef } from 'react'
import type { RefObject } from 'react'
import { FocusableElement, tabbable } from 'tabbable'
import type { FocusableElement } from 'tabbable'
import { tabbable } from 'tabbable'

interface TrapFocusParams {
sentinelStartRef: RefObject<HTMLElement>
Expand Down
15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5338,14 +5338,6 @@ ajv@^8.0.1:
require-from-string "^2.0.2"
uri-js "^4.2.2"

ally.js@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/ally.js/-/ally.js-1.4.1.tgz#9fb7e6ba58efac4ee9131cb29aa9ee3b540bcf1e"
integrity sha1-n7fmuljvrE7pExyymqnuO1QLzx4=
dependencies:
css.escape "^1.5.0"
platform "1.3.3"

alphanum-sort@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
Expand Down Expand Up @@ -7914,7 +7906,7 @@ css-what@^5.0.0:
resolved "https://registry.yarnpkg.com/css-what/-/css-what-5.0.1.tgz#3efa820131f4669a8ac2408f9c32e7c7de9f4cad"
integrity sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==

css.escape@^1.5.0, css.escape@^1.5.1:
css.escape@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb"
integrity sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s=
Expand Down Expand Up @@ -16155,11 +16147,6 @@ pkg-up@^2.0.0:
dependencies:
find-up "^2.1.0"

platform@1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.3.tgz#646c77011899870b6a0903e75e997e8e51da7461"
integrity sha1-ZGx3ARiZhwtqCQPnXpl+jlHadGE=

platform@^1.3.6:
version "1.3.6"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.6.tgz#48b4ce983164b209c2d45a107adb31f473a6e7a7"
Expand Down

0 comments on commit 4ff04a8

Please sign in to comment.