Skip to content

Commit

Permalink
Update InfluxReactComponent.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmtg committed Sep 19, 2022
1 parent 2e3da3c commit 46aa289
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/InfluxReactComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ export default function InfluxReactComponent(props: InfluxReactComponentProps):
// rand,
} = props

// const [ident, setIdent] = React.useState(rand)
const [components, setComponents] = React.useState(influxFile.components)

const callback: (op: string, file: TFile) => void = async (op, file) => {
// TODO: Add change diff for file vs this file. (Is file part of inlinked? Or referenced in inlinked?)
// setIdent(Math.random())
await influxFile.makeInfluxList()
setComponents(await influxFile.renderAllMarkdownBlocks())
}
Expand Down Expand Up @@ -161,15 +159,13 @@ export default function InfluxReactComponent(props: InfluxReactComponentProps):

const hiddenLength = isOpen ? length - shownLength : length

// console.log('show', influxFile.show)

if (!influxFile.show) {
return null
}

return <div className={classes.root}>

{/* <p>{ident.toString()}</p> */}
<h3>
<span
className={classes.openerButton}
Expand Down

0 comments on commit 46aa289

Please sign in to comment.