summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/footnotes/components/footnote.form.js
blob: 3cd909dc87cfd4cfab5caac30fc5cc2c032579ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React, { Component } from 'react'

export default class FootnoteForm extends Component {
  state = {
    editing: false,
  }

  render() {
    const { footnote, index } = this.props
    return (
      <div className='footnote-form'>
        <div className='footnote-index'>
          {index}{'. '}
        </div>
        <div className='footnote-text' dangerouslySetInnerHTML={{ __html: footnote.text }} />
      </div>
    )
  }
}