-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Describe your changes Fixes: # ## Checklist before requesting review - [ ] Feature/fix PRs should add one atomic (as small as possible) feature or fix. - [ ] The code compiles and all the tests pass.
- Loading branch information
Showing
24 changed files
with
339 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 25 additions & 11 deletions
36
apps/complete_registration/src/forms/exhibitor_catalog/detailed.page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
import { FormWrapper } from "../FormWrapper" | ||
import { FormField } from "../../screens/form/FormInput" | ||
import { CompleteButton } from "../../shared/CompleteButton" | ||
|
||
export function DetailedFormPage() { | ||
return ( | ||
<FormWrapper> | ||
<FormField.MultiSelect | ||
label="" | ||
label="Your industries" | ||
mapping="exhibitor.catalogue_industries" | ||
options={[ | ||
{ | ||
label: "First", | ||
value: "first" | ||
}, | ||
{ | ||
label: "Second", | ||
value: "third" | ||
} | ||
]} | ||
className="w-full" | ||
filter | ||
optionLabel="industry" | ||
optionValue="selected" | ||
/> | ||
<FormField.MultiSelect | ||
label="What employment are you offering?" | ||
mapping="exhibitor.catalogue_employments" | ||
className="w-full" | ||
filter | ||
optionLabel="employment" | ||
optionValue="selected" | ||
/> | ||
<FormField.MultiSelect | ||
label="Select your countries" | ||
mapping="exhibitor.catalogue_locations" | ||
className="w-full" | ||
filter | ||
optionLabel="location" | ||
optionValue="selected" | ||
/> | ||
<div className="mt-10 flex justify-center"> | ||
<CompleteButton /> | ||
</div> | ||
</FormWrapper> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
apps/complete_registration/src/screens/dashboard/DashboardError.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { useSelector } from "react-redux" | ||
import { selectErrors } from "../../store/form/form_selectors" | ||
|
||
const ERRORS = { | ||
not_authorized: ( | ||
<p> | ||
You are not logged in, you can{" "} | ||
<a className="text-emerald-400 underline" href="/register"> | ||
sign in here | ||
</a> | ||
</p> | ||
), | ||
user_did_not_sign_ir: ( | ||
<p> | ||
You have not completed Initial Registraion please contact sales at{" "} | ||
<span className="underline">[email protected]</span> | ||
</p> | ||
), | ||
user_is_not_exhibitor: ( | ||
<p> | ||
You did not get picked for the fair this year, contact | ||
[email protected] if you have any questions | ||
</p> | ||
), | ||
user_has_no_company: <p>You are not associated with any company</p> | ||
} | ||
|
||
export function DashboardError() { | ||
const error = useSelector(selectErrors) | ||
|
||
if (typeof error !== "string") return null | ||
|
||
return ( | ||
<div className="flex h-[100vh] w-[100vw] flex-col items-center justify-center"> | ||
<p className="mb-4 text-4xl">Oups, something went wrong</p> | ||
<div className="max-w-xl text-center">{ERRORS[error]}</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.