+ submitOrder={this.submitOrder}
+ formatError={this.handleOrderFormatError} />
diff --git a/ui/src/components/AuthForm.tsx b/ui/src/components/AuthForm.tsx
index 5cd50d3..14fc391 100644
--- a/ui/src/components/AuthForm.tsx
+++ b/ui/src/components/AuthForm.tsx
@@ -1,4 +1,5 @@
import * as React from "react";
+import { Bind } from "../types";
interface Props {
submitPincode: (pin: string) => void; // callback
@@ -9,6 +10,7 @@ interface State {
pin: string;
}
+@Bind("handleSubmit", "handleChange")
export default class AuthForm extends React.Component
{
constructor(props?: Props, context?: any) {
super(props, context);
@@ -17,12 +19,12 @@ export default class AuthForm extends React.Component {
render() {
return (
-