mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Add prettier for codestyle and re-format everything (#1294)
This commit is contained in:
parent
8b78154075
commit
0aae1f70d2
319 changed files with 4809 additions and 3936 deletions
|
@ -25,19 +25,19 @@ export class TaskListReplacer extends ComponentReplacer {
|
|||
}
|
||||
}
|
||||
|
||||
public getReplacement(node: DomElement): (ReactElement | undefined) {
|
||||
public getReplacement(node: DomElement): ReactElement | undefined {
|
||||
if (node.attribs?.class !== 'task-list-item-checkbox') {
|
||||
return
|
||||
}
|
||||
return (
|
||||
<input
|
||||
disabled={ this.onTaskCheckedChange === undefined }
|
||||
className="task-list-item-checkbox"
|
||||
type="checkbox"
|
||||
checked={ node.attribs.checked !== undefined }
|
||||
onChange={ this.handleCheckboxChange }
|
||||
id={ node.attribs.id }
|
||||
data-line={ node.attribs['data-line'] }
|
||||
disabled={this.onTaskCheckedChange === undefined}
|
||||
className='task-list-item-checkbox'
|
||||
type='checkbox'
|
||||
checked={node.attribs.checked !== undefined}
|
||||
onChange={this.handleCheckboxChange}
|
||||
id={node.attribs.id}
|
||||
data-line={node.attribs['data-line']}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue