Skip to content

Commit

Permalink
Update AnimatedCharacters.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
moerabaya committed Mar 21, 2024
1 parent ea76a82 commit a1e649c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/atoms/AnimatedText/AnimatedCharacters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ const AnimatedCharacters = ({
<StyledAniamtedCharacters as={type} {...rest}>
{words.map((word: string, index: number) => {
return (
// Wrap each word in the Wrapper component
<Wrapper key={index}>
<span className="font-medium" key={index}>
{words[index].flat().map((element: any, index: number) => {
return (
<span
Expand All @@ -88,7 +87,7 @@ const AnimatedCharacters = ({
</span>
);
})}
</Wrapper>
</span>
);
})}
{/* {} */}
Expand Down

0 comments on commit a1e649c

Please sign in to comment.