more toolbar buttons
This commit is contained in:
parent
63265c2b4c
commit
39a229bf21
2 changed files with 8 additions and 7 deletions
|
|
@ -102,13 +102,14 @@ export function TopPanel({rt, time, setTime, onInit, onClear, onRaise, ast, mode
|
|||
return <>
|
||||
<div className="toolbar">
|
||||
{([
|
||||
["and", <RountangleIcon kind="and"/>],
|
||||
["or", <RountangleIcon kind="or"/>],
|
||||
["pseudo", <PseudoStateIcon/>],
|
||||
["transition", <TrendingFlatIcon fontSize="small"/>],
|
||||
["text", <>T</>],
|
||||
] as [InsertMode, ReactElement][]).map(([m, buttonTxt]) =>
|
||||
["and", "AND-states", <RountangleIcon kind="and"/>],
|
||||
["or", "OR-states", <RountangleIcon kind="or"/>],
|
||||
["pseudo", "pseudo-states", <PseudoStateIcon/>],
|
||||
["transition", "transitions", <TrendingFlatIcon fontSize="small"/>],
|
||||
["text", "text", <>T</>],
|
||||
] as [InsertMode, string, ReactElement][]).map(([m, hint, buttonTxt]) =>
|
||||
<button
|
||||
title={"insert "+hint}
|
||||
disabled={mode===m}
|
||||
onClick={() => setMode(m)}
|
||||
>{buttonTxt}</button>)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue