Skip to content

Commit b801fd9

Browse files
committed
Fix code formatting with Prettier
- Apply Prettier formatting to converted components - No functional changes, only whitespace/formatting
1 parent 84af548 commit b801fd9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/App.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ const Sandbox: React.FC = () => {
198198
}
199199
}, [value, displayMode]);
200200

201-
const katexOptions = useMemo(
202-
() => ({ displayMode }),
203-
[displayMode]
204-
);
201+
const katexOptions = useMemo(() => ({ displayMode }), [displayMode]);
205202

206203
return (
207204
<div>
@@ -234,7 +231,7 @@ const Sandbox: React.FC = () => {
234231
</p>
235232
</div>
236233
);
237-
}
234+
};
238235

239236
const compressString = (string: string): string =>
240237
LZString.compressToBase64(string)

src/katex.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ type KatexProps = {
99
beforeRender?: () => void;
1010
};
1111

12-
const Katex: React.FC<KatexProps> = ({ source, katexOptions, beforeRender }) => {
12+
const Katex: React.FC<KatexProps> = ({
13+
source,
14+
katexOptions,
15+
beforeRender,
16+
}) => {
1317
const previewRef = useRef<HTMLSpanElement>(null);
1418
const prevSourceRef = useRef<string>();
1519
const prevKatexOptionsRef = useRef<KatexOptions | undefined>();

0 commit comments

Comments
 (0)