diff --git a/src/Editor.tsx b/src/Editor.tsx index d32ec15..f7cc5ee 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -1,10 +1,8 @@ -import React, { useState } from 'react'; -import './Editor.css'; -import {Highlight} from './highlight'; +import React, { useState } from "react"; +import "./Editor.css"; +import { Highlight } from "./highlight"; -function Editor({ - defaultValue = "I have a text value." -}) { +function Editor({ defaultValue = "I have a text value." }) { function handleChange(event: React.ChangeEvent) { console.log(event.target.value); setValue(event.target.value); @@ -27,13 +25,17 @@ function Editor({ } if (highlights.length === 0) { - addHighlight(1,5); + addHighlight(1, 5); } return (
-