From 3b30a54c8269e77d1c28477997223da1cd3a4748 Mon Sep 17 00:00:00 2001 From: Entkenntnis Date: Tue, 5 Dec 2023 14:55:05 +0100 Subject: [PATCH 1/4] make vereinfachen more generic --- .../equations-app/equations-app.tsx | 58 +++++++++++++------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/src/components/equations-app/equations-app.tsx b/src/components/equations-app/equations-app.tsx index 2edad62f73..0d12159cbb 100644 --- a/src/components/equations-app/equations-app.tsx +++ b/src/components/equations-app/equations-app.tsx @@ -23,6 +23,7 @@ type InputState = | 'var-mismatch' | 'left-mismatch' | 'right-mismatch' + | 'mismatch' export function EquationsApp() { const ce = new ComputeEngine() @@ -103,6 +104,7 @@ export function EquationsApp() { return () => { window.removeEventListener('popstate', handlePopstate) } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) if (showOverview) { @@ -527,7 +529,7 @@ export function EquationsApp() {
{actions[actions.length - 1].type === 'simplify' - ? 'Terme in Gleichung vereinfachen:' + ? 'Gleichung vereinfachen:' : 'Forme auf beiden Seiten um:'}