Fix newline character in App.tsx
This commit is contained in:
@@ -162,8 +162,7 @@ export default function App() {
|
|||||||
|
|
||||||
const historyIconSrc = theme === "light" ? historyIconBright : historyIcon;
|
const historyIconSrc = theme === "light" ? historyIconBright : historyIcon;
|
||||||
|
|
||||||
const lines = useMemo(() => body.split("
|
const lines = useMemo(() => body.split("\n"), [body]);
|
||||||
"), [body]);
|
|
||||||
const lineNumbers = useMemo(() => lines.map((_, index) => index + 1), [lines]);
|
const lineNumbers = useMemo(() => lines.map((_, index) => index + 1), [lines]);
|
||||||
|
|
||||||
const handleTextareaScroll = useCallback((event: React.UIEvent<HTMLTextAreaElement>) => {
|
const handleTextareaScroll = useCallback((event: React.UIEvent<HTMLTextAreaElement>) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user