Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Add missing key prop #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions headless-multilingual-cms/admin/pages/articleList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default () => {
>
{request?.dimensions.locale.map(localeCode => (
<TextCell
key={localeCode}
field={`locales(locale.code = '${localeCode}').headline`}
header={`${locale['Headline']} (${localeCode})`}
format={(scalar) => <Link to="articleEdit(id: $entity.id)">{scalar}</Link>}
Expand All @@ -25,6 +26,7 @@ export default () => {
))}
{request?.dimensions.locale.map(localeCode => (
<UrlCell
key={localeCode}
field={`locales(locale.code = '${localeCode}').slug`}
header={`${locale['Url']} (${localeCode})`}
prefix={`${localeCode}/blog`}
Expand All @@ -33,6 +35,7 @@ export default () => {
))}
{request?.dimensions.locale.map(localeCode => (
<DateCell
key={localeCode}
field={`locales(locale.code = '${localeCode}').publishAt`}
header={`${locale['Publish date']} (${localeCode})`}
disableOrder
Expand Down
2 changes: 2 additions & 0 deletions headless-multilingual-cms/admin/pages/pageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default () => {
>
{request?.dimensions.locale.map(localeCode => (
<TextCell
key={localeCode}
field={`locales(locale.code = '${localeCode}').seo.title`}
header={`${locale['Title']} (${localeCode})`}
format={(scalar) => <Link to="pageEdit(id: $entity.id)">{scalar}</Link>}
Expand All @@ -31,6 +32,7 @@ export default () => {
/>
{request?.dimensions.locale.map(localeCode => (
<UrlCell
key={localeCode}
field={`locales(locale.code = '${localeCode}').slug`}
header={`${locale['Url']} (${localeCode})`}
prefix={`${localeCode}`}
Expand Down