Skip to content

Commit

Permalink
🚑 hrm, prefer if this was hotfix not quickfix
Browse files Browse the repository at this point in the history
Oh yea ... this fixes the type error
  • Loading branch information
JeromeFitz committed Mar 28, 2021
1 parent 23efb5a commit 3bd3410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Dynamic/column-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'

const columnContainer = ({ id, content }) => {
return (
<div className="columnContainer" key={`${id}--cc`}>
<div className="columnContainer">
{content.map((data, dataIndex) => {
const children = _merge(
{ ...data.props.children },
Expand Down
5 changes: 3 additions & 2 deletions lib/notion/helpers/renderNotionContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const renderNotionContent = (data) => {

// const renderHeading = (Type: string | React.ComponentType) => {
// toRender.push(
// <Heading key={id} key={id}>
// <Heading key={id}>
// <Type key={id}>{textBlock({parentKey: id, pRenderTag: true, text: properties.title)}</Type>
// </Heading>
// )
Expand All @@ -83,6 +83,7 @@ const renderNotionContent = (data) => {
// console.warn(`> renderColumn`)
// console.dir(data)
const columnData = renderNotionContent({ content: data })
// @note(jsx) no key needed here
toRenderColumn.push(<components.Column>{columnData}</components.Column>)
}

Expand Down Expand Up @@ -118,7 +119,7 @@ const renderNotionContent = (data) => {
})

toRender.push(
<components.ColumnContainer content={toRenderColumn} key={id} key={id} />
<components.ColumnContainer content={toRenderColumn} id={id} key={id} />
)
toRenderColumn = []
columnMap = {}
Expand Down

0 comments on commit 3bd3410

Please sign in to comment.