Skip to content

Commit

Permalink
less anys
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Dec 1, 2024
1 parent 3dda281 commit c3a0ca5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/src/components/atoms/RecordItem/RecordItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const TrailingSVGBox = ({
className,
style,
...props
}: BoxProps & { $rotate: boolean }) => (
}: BoxProps & { $rotate?: boolean }) => (
<Box
className={clsx(className, styles.trailingSVGBox)}
style={{ ...style, ...assignInlineVars({ [styles.trailingSvgBoxTransform]: $rotate ? 'rotate(45deg)' : 'none' }) }}
Expand Down Expand Up @@ -260,7 +260,7 @@ export const RecordItem = React.forwardRef<
>
{children}
</Typography>
<TrailingSVGBox {...(PostfixProps as any)} />
<TrailingSVGBox {...(PostfixProps)} />
</ContainerBox>
)
},
Expand Down
4 changes: 2 additions & 2 deletions components/src/hooks/useDocumentEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const useDocumentEvent = (
_callback: () => void,
shouldCallback?: boolean,
) => {
const callback = (e: any) => {
if (ref.current && !ref.current.contains(e.target)) _callback()
const callback = (e: Event) => {
if (ref.current && !ref.current.contains(e.target as Node)) _callback()
}
useEffect(() => {
if (shouldCallback) document.addEventListener(event, callback)
Expand Down
3 changes: 2 additions & 1 deletion docs/src/playroom/FrameComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react'

import type { Mode } from '@ensdomains/thorin'
import { ThemeProvider } from '@ensdomains/thorin'
import '@ensdomains/thorin/dist/thorin.css'
import '../styles/frameStyle.css'
Expand All @@ -10,7 +11,7 @@ const FrameComponent = ({
theme,
children,
}: // theme,
React.PropsWithChildren<any>) => (
React.PropsWithChildren<{ theme: Mode }>) => (
<>
<link href="https://rsms.me/inter/inter.css" rel="stylesheet" />

Expand Down

0 comments on commit c3a0ca5

Please sign in to comment.