carelynx-account-settings
v1.0.3
Published
Component to display the logged in user details and other actions related to the Account.
Downloads
12
Readme
carelynx-account-settings
Component to display the logged in user details and other actions related to the Account.
Install
npm install --save carelynx-account-settings
Usage
import React, { Component } from 'react';
import AccountSettings from 'carelynx-account-settings';
const App = () => {
return <AccountSettings />;
};
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 |