mg-work-timer
TypeScript icon, indicating that this package has built-in type declarations

0.1.25 • Public • Published

mg-work-timer

mg-work-timer is a React-typescript package to have a simple stopwatch to register work and resting daily times for your employees or for yourself.

npm

Timer example

Installation

npm install mg-work-timer

Use

import { Timer } from 'mg-work-timer'

function App() {

  return (
    <>
        <Timer />
    <>
  )
}

export default App

To use the Login system create a project on Firebase, activate auth, enable the login with email at authentication options and change the firebaseConfig data at /src/firebaseConfig.ts to your own data

const firebaseConfig = {
  apiKey: "____________________________________",
  authDomain: "___________.firebaseapp.com",
  projectId: "___________",
  storageBucket: "___________.appspot.com",
  messagingSenderId: "000000000000",
  appId: "1:000000000000:web:__________________",
  measurementId: "G-__________",
}

Funding

If you find it useful please support my work!

Buy me a coffee

Package Sidebar

Install

npm i mg-work-timer

Weekly Downloads

3

Version

0.1.25

License

GPL

Unpacked Size

58.6 kB

Total Files

19

Last publish

Collaborators

  • miguelgisbert