Skip to content

Issue#630 admin featured content#406

Open
fridaklockmann wants to merge 3 commits intomasterfrom
Issue#630-admin-featuredContent
Open

Issue#630 admin featured content#406
fridaklockmann wants to merge 3 commits intomasterfrom
Issue#630-admin-featuredContent

Conversation

@fridaklockmann
Copy link
Contributor

@fridaklockmann fridaklockmann commented Jul 30, 2019

Copy link
Contributor

@vikre vikre left a 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}
Copy link
Contributor

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? :)

Copy link
Contributor Author

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,
Copy link
Contributor

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 :) )

@kievu kievu force-pushed the Issue#630-admin-featuredContent branch from 00f1b16 to 229cf0c Compare September 30, 2019 08:16
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