Skip to content

Commit

Permalink
Remove manuallyTagged
Browse files Browse the repository at this point in the history
  • Loading branch information
samwisekind committed May 28, 2024
1 parent 6319d8c commit c649632
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/layout/CommonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const CommonPage = ({
{...previewProps({
entryId: previewData.sys.id as string,
fieldId: 'content',
manuallyTagged: true,
})}
>
{data.content && documentToReactComponents(data.content, pageRenderOptions)}
Expand Down
14 changes: 7 additions & 7 deletions src/pages/education/species/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,45 +102,45 @@ const Page: NextPage<PageProps> = ({
<ul className={styles.taxonomy}>
<li>
<strong>Order:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'order', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'order' })}>
{order}
</span>
</li>
<li>
<strong>Suborder:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'suborder', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'suborder' })}>
{suborder}
</span>
</li>
<li>
<strong>Family:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'family', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'family' })}>
{family}
</span>
</li>
{subfamily && (
<li>
<strong>Subfamily:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'subfamily', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'subfamily' })}>
{subfamily}
</span>
</li>
)}
<li>
<strong>Genus:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'genus', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'genus' })}>
{genus}
</span>
</li>
<li className={!wide ? styles.wide : ''}>
<strong>Species:</strong>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'species', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'species' })}>
<em>{speciesName}</em> ({speciesYear}
</span>
</li>
</ul>

<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'content', manuallyTagged: true })}>
<span {...previewProps({ entryId: previewData.sys.id, fieldId: 'content' })}>
{documentToReactComponents(content, pageRenderOptions)}
</span>
</article>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/news/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,21 @@ const Page: NextPage<PageProps> = ({
<li
className="date"
title={date}
{...previewProps({ entryId: previewData.sys.id, fieldId: 'date', manuallyTagged: true })}
{...previewProps({ entryId: previewData.sys.id, fieldId: 'date' })}
>
{formatDateRelative(date)}
</li>
<li
className="category"
{...previewProps({ entryId: previewData.sys.id, fieldId: 'category', manuallyTagged: true })}
{...previewProps({ entryId: previewData.sys.id, fieldId: 'category' })}
>
{category}
</li>
</ul>

<article
className="content"
{...previewProps({ entryId: previewData.sys.id, fieldId: 'content', manuallyTagged: true })}
{...previewProps({ entryId: previewData.sys.id, fieldId: 'content' })}
>
{pageBody}
</article>
Expand Down

0 comments on commit c649632

Please sign in to comment.