Skip to content

Commit

Permalink
Release (#33)
Browse files Browse the repository at this point in the history
* remove app end message

* cyclewise v2 amends

* form amends (#17)

* add promotion end page

* add form route

* add azure routing json

* remove foobar route

* fix: title (#19)

* update app title

* form amends

* update logo url

* feat: survey amends (#22)

* copy amends

* question updates

* form amends

* add district dropdown

* feat: survey amends (#23)

* copy amends

* question updates

* form amends

* add district dropdown

* add in all questions

* fix district dropdown

* add name and dob

* copy amends

* update policy links

* remove application end message (#29)

* add missing questions (#30)

* Bugfix: Disable send application button on submit (#32)

Co-authored-by: Sharath Thokala <Sharath.Thokala@wmca.org.uk>

---------

Co-authored-by: sharaththokala <43016514+sharaththokala@users.noreply.github.com>
Co-authored-by: Sharath Thokala <Sharath.Thokala@wmca.org.uk>
  • Loading branch information
3 people committed Feb 1, 2024
1 parent 18a8ad3 commit f902571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ApplicationForm from "./Application/ApplicationForm";
import OutsideWmca from "./Application/section1/OutsideWmca";
import SubmitSuccess from "./Application/SubmitSuccess";
import SubmitError from "./Application/SubmitError";
import AppEnd from "./Application/section1/AppEnd";
// import AppEnd from "./Application/section1/AppEnd";

const TRACKING_ID = "UA-3407557-5";
ReactGA.initialize(TRACKING_ID);
Expand Down
6 changes: 4 additions & 2 deletions src/common/FormWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const FormWizard = ({
const isLastPage = page === Children.count(filteredChildren) - 1;
if (isLastPage) {
setLoading(true);
(async () => {
await (async () => {
const rawResponse = await fetch(
"https://cyclewise-dev-api.azure-api.net/cyclewise/submit-form",
{
Expand Down Expand Up @@ -175,7 +175,9 @@ const FormWizard = ({
)}
{isLastPage && (
<button
className="wmnds-btn wmnds-btn--start"
className={`wmnds-btn wmnds-btn--start ${
(loading) && "wmnds-btn--disabled"
}`}
type="submit"
disabled={loading}
>
Expand Down

0 comments on commit f902571

Please sign in to comment.