better UI

This commit is contained in:
Joeri Exelmans 2025-10-20 16:29:48 +02:00
parent 44fb8726ca
commit 1f9379df7f
16 changed files with 440 additions and 248 deletions

View file

@ -1,4 +1,4 @@
import { Dispatch, ReactElement, SetStateAction, useState } from "react";
import { Dispatch, ReactElement, SetStateAction, useState, KeyboardEvent } from "react";
import { parse as parseLabel } from "../statecharts/label_parser";
@ -23,6 +23,7 @@ export function TextDialog(props: {setModal: Dispatch<SetStateAction<ReactElemen
try {
const parsed = parseLabel(text);
} catch (e) {
// @ts-ignore
error = e.message;
}