Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix(Templates): Update Page Templates
Browse files Browse the repository at this point in the history
Page Templates were failing due to their own type definition. Fixed.
  • Loading branch information
Greg-Hamel committed Jun 18, 2018
1 parent 7c9fbb4 commit fc83acb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import withTouchedErrors from "../../../helpers/withTouchedErrors.react";

import defaultStrings from "./ForgotPasswordPage.strings";
import type { stringTypes } from "./ForgotPasswordPage.strings";
import type { FormEvents, FocusEvents } from "../../../";

type fieldTypes = {|
email?: string,
Expand All @@ -17,12 +18,11 @@ type touchedTypes = {|
|};

type Props = {|
...FormEvents,
...FocusEvents,
+strings?: stringTypes,
+action?: string,
+method?: string,
+onSubmit?: Function,
+onChange?: (SyntheticInputEvent<HTMLInputElement>) => void,
+onBlur?: (SyntheticInputEvent<HTMLInputElement>) => void,
+values?: fieldTypes,
+errors?: fieldTypes,
+touched?: touchedTypes,
Expand Down
6 changes: 3 additions & 3 deletions src/page_templates/account/LoginPage/LoginPage.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import withTouchedErrors from "../../../helpers/withTouchedErrors.react";

import defaultStrings from "./LoginPage.strings";
import type { stringTypes } from "./LoginPage.strings";
import type { FormEvents, FocusEvents } from "../../../";

type fieldTypes = {|
email?: string,
Expand All @@ -19,12 +20,11 @@ type touchedTypes = {|
|};

type Props = {|
...FormEvents,
...FocusEvents,
+strings?: stringTypes,
+action?: string,
+method?: string,
+onSubmit?: Function,
+onChange?: (SyntheticInputEvent<HTMLInputElement>) => void,
+onBlur?: (SyntheticInputEvent<HTMLInputElement>) => void,
+values?: fieldTypes,
+errors?: fieldTypes,
+touched?: touchedTypes,
Expand Down
7 changes: 4 additions & 3 deletions src/page_templates/account/RegisterPage/RegisterPage.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import withTouchedErrors from "../../../helpers/withTouchedErrors.react";
import defaultStrings from "./RegisterPage.strings";
import type { stringTypes } from "./RegisterPage.strings";

import type { FormEvents, FocusEvents } from "../../../";

type fieldTypes = {|
name?: string,
email?: string,
Expand All @@ -28,12 +30,11 @@ type touchedTypes = {|
|};

type Props = {|
...FormEvents,
...FocusEvents,
+strings?: stringTypes,
+action?: string,
+method?: string,
+onSubmit?: Function,
+onChange?: (SyntheticInputEvent<HTMLInputElement>) => void,
+onBlur?: (SyntheticInputEvent<HTMLInputElement>) => void,
+values?: fieldTypes,
+errors?: fieldTypes,
+touched?: touchedTypes,
Expand Down

0 comments on commit fc83acb

Please sign in to comment.