0.3.0 • Published 5 years ago

react-time-expiry v0.3.0

Weekly downloads
116
License
-
Repository
github
Last release
5 years ago

react-time-expiry

A react module component for time expiry warning after a session is about to end.

Install

npm install --save react-time-expiry

Paramaters :

  • time = time in minutes for the modal to last, default is 60 seconds
  • onClickOk = what to do when ok is clicked, will dismiss the modal after the function call
  • onCancel = what to do when cancel is clicked or it is clicked outside the component, will dismiss the modal after the function call
  • Message = optional message after warning of some seconds remaining

Usage

No Params

  import SessionAlert from 'react-time-expiry';

  <SessionAlert />

With params

  import SessionAlert from 'react-time-expiry';

  <SessionAlert
    time={3}
    Message="Extend more ?"
  />

Output

No Params

With params

0.3.0

5 years ago

0.2.281

6 years ago

0.2.28

6 years ago

0.2.27

6 years ago

0.2.26

6 years ago

0.2.25

6 years ago

0.2.24

6 years ago

0.2.23

6 years ago

0.2.22

6 years ago

0.2.21

6 years ago

0.2.20

6 years ago

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago