diff --git a/blog/2024-11-15-playing-with-fire/1-introduction/index.mdx b/blog/2024-11-15-playing-with-fire/1-introduction/index.mdx index 67181ea..ed60823 100644 --- a/blog/2024-11-15-playing-with-fire/1-introduction/index.mdx +++ b/blog/2024-11-15-playing-with-fire/1-introduction/index.mdx @@ -202,6 +202,4 @@ import BrowserOnly from "@docusaurus/BrowserOnly"; import GasketWeighted from "./GasketWeighted"; import Canvas from "../src/Canvas"; - \ No newline at end of file + \ No newline at end of file diff --git a/blog/2024-11-15-playing-with-fire/2-transforms/CoefEditor.tsx b/blog/2024-11-15-playing-with-fire/2-transforms/CoefEditor.tsx index 8536381..1eeeb86 100644 --- a/blog/2024-11-15-playing-with-fire/2-transforms/CoefEditor.tsx +++ b/blog/2024-11-15-playing-with-fire/2-transforms/CoefEditor.tsx @@ -8,11 +8,14 @@ export interface Props { isPost: boolean; coefs: Coefs; setCoefs: (coefs: Coefs) => void; + resetCoefs: () => void; } -export const CoefEditor = ({title, isPost, coefs, setCoefs}: Props) => { +export const CoefEditor = ({title, isPost, coefs, setCoefs, resetCoefs}: Props) => { + const resetButton = + return (
{title}
+{title} {resetButton}
{isPost ?
{title}
+{title} {resetButton}