-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue#630 admin featured content #406
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Første gjennomgang :)
</div> | ||
</Card> | ||
} | ||
i={featuredContentList.length} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trenger vel ikke i
her hvis det er featuredContentList.length
og du sender inn featuredContentList
som en prop? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dersom man redigerer en av de allerede eksisterende elementene bruker jeg i til å identifisere hvilke av elementene i listen jeg redigerer. Dersom man legger til et nytt element vil i være lik lengden til listen, men i andre tilfeller vil den avhenge av hvilket nummer i listen elementet er.
import type { FeaturedContent } from '../../types'; | ||
|
||
type Props = { | ||
i: number, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i
kan du få fra featuredContentList.length
så droppe den som prop (se kommentaren over :) )
00f1b16
to
229cf0c
Compare
Fixes https://github.com/GlobalDigitalLibraryio/issues/issues/630