-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create selection-based buttons for prover #1542
Conversation
@@ -426,22 +431,23 @@ module Update = { | |||
) => { | |||
switch (step_kind) { | |||
| SingleStep(m) => | |||
calculate_single_step(~settings, expr, state, m, hidden, editor) | |||
calculate_single_step(~settings, expr, ctx, state, m, hidden, editor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to send in ctx
here and elsewhere? Unless I'm missing it, it doesn't seem to get used.
switch (cached_result) { | ||
| Some(true) => [ | ||
Web.Node.text("Valid"), | ||
Widgets.button(Icons.star, _ => | ||
signal( | ||
AddAxiomStep( | ||
unboxed_selected_exp, | ||
unboxed_cached_exp, | ||
), | ||
) | ||
), | ||
] | ||
| Some(false) => [Web.Node.text("Invalid")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so here is where we're using whether the rewrite is valid or not - nice
No description provided.