Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): <Fragment> does not have the key property, so we remove it #18

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

MrRedu
Copy link
Contributor

@MrRedu MrRedu commented Jan 31, 2025

  • The <Fragment> was removed because it is unnecessary and gives an error that the key property does not exist.

Error message:

before

Evidence:

before-1

Result:

{items.map((item, index) => (
-      <>
        <img
          key={index}
          className={cn(
            "object-cover  scale-0 opacity:0 data-[status='active']:scale-100  data-[status='active']:opacity-100 transition-transform data-[status='active']:duration-500 duration-300 data-[status='active']:ease-out-expo  absolute   -translate-y-[50%] -translate-x-[50%] ",
            imgClass
          )}
          data-index={index}
          data-status='inactive'
          src={item}
          alt={`image-${index}`}
          ref={refs.current[index]}
        />
-    </>
      ))}

The <Fragment/> was removed because it is unnecessary and gives an error that the key property does not exist.
@naymurdev naymurdev merged commit 3d3f920 into ui-layouts:main Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants