carelynx-account-settings-component
v1.1.1
Published
Component to display the logged in user details and other actions related to the Account.
Readme
carelynx-account-settings-component
Component to display the logged in user details and other actions related to the Account.
Install
npm install --save carelynx-account-settings-componentUsage
import React, { Component } from 'react';
import { AccountSettingsComponent } from 'carelynx-account-settings-component';
const App = () => {
return <AccountSettingsComponent />;
};Props
Special props:
| prop | type | description |
| ------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| user | object | User object which has the user details like the first name, last name, email, etc. |
| title | string | Title for the Component |
| showResetPassword | boolean | Hide or show the Reset Password button. By default the value is set to true |
| showLogout | boolean | Hide or show the Logout button. By default the value is set to true |
| logout | func | Callback for the Logout button |
| resetPassword | func | Callback for the Reset Password button |
