0.3.0 • Published 6 years ago

react-time-expiry v0.3.0

Weekly downloads
116
License
-
Repository
github
Last release
6 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

6 years ago

0.2.281

7 years ago

0.2.28

7 years ago

0.2.27

7 years ago

0.2.26

7 years ago

0.2.25

7 years ago

0.2.24

7 years ago

0.2.23

7 years ago

0.2.22

7 years ago

0.2.21

7 years ago

0.2.20

7 years ago

0.2.19

7 years ago

0.2.18

7 years ago

0.2.17

7 years ago

0.2.16

7 years ago

0.2.15

7 years ago

0.2.14

7 years ago

0.2.13

7 years ago

0.2.12

7 years ago

0.2.11

7 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago