spartaxx-package-contacts
v1.0.1
Published
This package exports a reusable `ContactsPage` React component for showing and managing client contacts, mailing address, billing address, and communication preferences.
Downloads
127
Readme
Spartaxx Package Contacts
This package exports a reusable ContactsPage React component for showing and managing client contacts, mailing address, billing address, and communication preferences.
Usage
- Install the package via local path or package registry.
- Ensure the consuming app defines the same environment variables in its own
.envfile. - Import the component:
import { ContactsPage } from 'spartaxx-package-contacts';
function App() {
const rowData = { ClientId: 123 };
return <ContactsPage rowData={rowData} />;
}Required environment variables
In the consuming application, add the same variables to .env:
REACT_APP_PFBA_API_BASE_URL=https://conciergeapiv2uat.poconnor.com
REACT_APP_PFBA_API_CONTROLLER=api/Concierge,api/DynamicQueryNotes
- All API calls use
process.env.REACT_APP_PFBA_API_BASE_URLandREACT_APP_PFBA_API_CONTROLLER. - The component imports its own CSS file.
- The package expects
react,react-dom,react-icons, andreact-toastifyas peer dependencies.
