Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4ab64e

Browse filesBrowse files
authored
Merge pull request #209 from PedroMarianoAlmeida/remove-any-from-DecryptedText
remove any from DecryptedText
2 parents aa2cd89 + abfa9db commit d4ab64e
Copy full SHA for d4ab64e

File tree

Expand file treeCollapse file tree

2 files changed

+6
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-8
lines changed

‎src/ts-default/TextAnimations/DecryptedText/DecryptedText.tsx

Copy file name to clipboardExpand all lines: src/ts-default/TextAnimations/DecryptedText/DecryptedText.tsx
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState, useRef, ReactNode } from 'react'
2-
import { motion } from 'framer-motion'
2+
import { motion, HTMLMotionProps } from 'framer-motion'
33

44
const styles = {
55
wrapper: {
@@ -18,7 +18,7 @@ const styles = {
1818
},
1919
}
2020

21-
interface DecryptedTextProps {
21+
interface DecryptedTextProps extends HTMLMotionProps<'span'> {
2222
text: string
2323
speed?: number
2424
maxIterations?: number
@@ -30,7 +30,6 @@ interface DecryptedTextProps {
3030
parentClassName?: string
3131
encryptedClassName?: string
3232
animateOn?: 'view' | 'hover'
33-
children?: ReactNode
3433
}
3534

3635
export default function DecryptedText({
@@ -237,4 +236,4 @@ export default function DecryptedText({
237236
</span>
238237
</motion.span>
239238
)
240-
}
239+
}

‎src/ts-tailwind/TextAnimations/DecryptedText/DecryptedText.tsx

Copy file name to clipboardExpand all lines: src/ts-tailwind/TextAnimations/DecryptedText/DecryptedText.tsx
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState, useRef } from 'react'
2-
import { motion } from 'framer-motion'
2+
import { motion, HTMLMotionProps } from 'framer-motion'
33

4-
interface DecryptedTextProps {
4+
interface DecryptedTextProps extends HTMLMotionProps<'span'> {
55
text: string
66
speed?: number
77
maxIterations?: number
@@ -13,7 +13,6 @@ interface DecryptedTextProps {
1313
encryptedClassName?: string
1414
parentClassName?: string
1515
animateOn?: 'view' | 'hover'
16-
[key: string]: any
1716
}
1817

1918
export default function DecryptedText({
@@ -222,4 +221,4 @@ export default function DecryptedText({
222221
</span>
223222
</motion.span>
224223
)
225-
}
224+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.