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

Issue#630 admin featured content #406

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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

packages/admin-frontend/pages/_app.js Outdated Show resolved Hide resolved
packages/admin-frontend/pages/admin/featured.js Outdated Show resolved Hide resolved
packages/admin-frontend/pages/admin/featured.js Outdated Show resolved Hide resolved
</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