-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style Personal Health Care Contacts to new designs (#28295)
* Style to new designs * Updates unit tests * fix margins
- Loading branch information
Showing
7 changed files
with
118 additions
and
86 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
25 changes: 25 additions & 0 deletions
25
...ions/personalization/profile/components/personal-health-care-contacts/HelpDeskContact.jsx
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,25 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { CONTACTS } from '@department-of-veterans-affairs/component-library/contacts'; | ||
|
||
const HelpDeskContact = ({ testId }) => ( | ||
<> | ||
<va-telephone | ||
data-testid={`${testId}-va-800-number`} | ||
contact={CONTACTS.HELP_DESK} | ||
/>{' '} | ||
( | ||
<va-telephone | ||
data-testid={`${testId}-va-711-number`} | ||
contact={CONTACTS['711']} | ||
tty | ||
/> | ||
) | ||
</> | ||
); | ||
|
||
HelpDeskContact.propTypes = { | ||
testId: PropTypes.string, | ||
}; | ||
|
||
export default HelpDeskContact; |
16 changes: 16 additions & 0 deletions
16
...cations/personalization/profile/components/personal-health-care-contacts/Instructions.jsx
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,16 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import HelpDeskContact from './HelpDeskContact'; | ||
|
||
const Instructions = ({ testId }) => ( | ||
<div data-testid={testId}> | ||
To add a contact, call us at <HelpDeskContact testId={testId} />. | ||
</div> | ||
); | ||
|
||
Instructions.propTypes = { | ||
testId: PropTypes.string, | ||
}; | ||
|
||
export default Instructions; |
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