RIO Session Expired Info
Provides the SessionExpiredDialog
component that can be used to inform the user about their expired session.
🔋Comes "batteries included", meaning you don't need to provide the translations. Just the current locale of your app.
Installation
Before installing, make sure you have these dependencies in your project already as they're needed by this package:
react
version 16.7 or abovereact-dom
version 16.7 or abovereact-intl
version 5.24.8 or above@rio-cloud/rio-uikit
version 0.15 or above
Next, add the npm package to your project:
npm install @rio-cloud/rio-session-expired-info --save
Usage
import { SessionExpiredDialog } from '@rio-cloud/rio-session-expired-info';
const Example = () => {
const [showDialog, setShowDialog] = useState(false);
const handleDialogClose = () => {
setShowDialog(false);
};
return (
<SessionExpiredDialog
show={showDialog}
onClose={handleDialogClose}
locale="en-GB"
/>
);
}
License
Both @rio-cloud/rio-uikit
and @rio-cloud/rio-session-expired-info
are licensed under the Apache 2.0 license.
You can see the full license text in LICENSE.
Development
A local demo page can be started with npm start
. You can view it at http://localhost:3000.
TODOs