-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FS-247]: Householder Contact Information Form (#140)
This PR householders contact information form. --------- Co-authored-by: ASafaierad <[email protected]>
- Loading branch information
1 parent
2c1c539
commit cc375bc
Showing
69 changed files
with
2,147 additions
and
554 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
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
13 changes: 0 additions & 13 deletions
13
...hboard/Households/HouseholdDetail/_components/HouseholderForm/HouseholderForm.stories.tsx
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...oard/Households/HouseholdDetail/_components/HouseholderForm/HouseholderFormActions.ids.ts
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,5 @@ | ||
export const householderFormActionsIds = { | ||
submitBtn: 'submit-button', | ||
editBtn: 'edit-button', | ||
cancel: 'cancel-button', | ||
} as const; |
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
44 changes: 44 additions & 0 deletions
44
app/Dashboard/Households/HouseholdDetail/_components/HouseholderForm/HouseholderForms.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,44 @@ | ||
import type { Householder } from '@camp/domain'; | ||
import { Stack } from '@mantine/core'; | ||
|
||
import { HouseholderContactForm } from './_components/HouseholderContactForm'; | ||
import { HouseholderFinancialForm } from './_components/HouseholderFinancialForm'; | ||
import { HouseholderHealthForm } from './_components/HouseholderHealthForm'; | ||
import { HouseholderIdentityForm } from './_components/HouseholderIdentityForm'; | ||
|
||
interface Props { | ||
initialHouseholder?: Householder; | ||
householdId: string; | ||
householdName: string; | ||
} | ||
|
||
export const HouseholderForms = ({ | ||
initialHouseholder, | ||
householdId, | ||
householdName, | ||
}: Props) => { | ||
return ( | ||
<Stack spacing={30}> | ||
<HouseholderIdentityForm | ||
initialHouseholder={initialHouseholder} | ||
householdId={householdId} | ||
householdName={householdName} | ||
/> | ||
<HouseholderContactForm | ||
householdId={householdId} | ||
householdName={householdName} | ||
initialHouseholder={initialHouseholder} | ||
/> | ||
<HouseholderHealthForm | ||
householdId={householdId} | ||
householdName={householdName} | ||
initialHouseholder={initialHouseholder} | ||
/> | ||
<HouseholderFinancialForm | ||
householdId={householdId} | ||
householdName={householdName} | ||
initialHouseholder={initialHouseholder} | ||
/> | ||
</Stack> | ||
); | ||
}; |
14 changes: 14 additions & 0 deletions
14
...mponents/HouseholderForm/_components/HouseholderContactForm/HouseholderContactForm.ids.ts
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,14 @@ | ||
export const householderContactFormIds = { | ||
form: 'householder-contact-form', | ||
provinceInput: 'householder-province', | ||
cityInput: 'householder-city', | ||
addressInput: 'householder-address', | ||
neighborhoodInput: 'householder-neighborhood', | ||
zipCodeInput: 'householder-zip-code', | ||
priorAccommodationAddressInput: 'householder-priorAccommodation-address', | ||
accommodationTypeInput: 'householder-accommodationType', | ||
descriptionInput: 'householder-description', | ||
nationalityInput: 'householder-nationality', | ||
cityOfBirthInput: 'householder-city-of-birth', | ||
idPrefix: 'householder-contact', | ||
} as const; |
Oops, something went wrong.