1.1.12 • Published 4 months ago

notify-component v1.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

#Usage

###define in router

import {NotifyContainer} from "notify-component";

return(<ErrorBoundary>
    <Routes>
      <Route element={<>
        <HeaderLanding/>
        <Layout/>
      </>}>
        <Route path="/agreement" element={<MainPage/>}/>
        <Route path="/policy" element={<MainPage/>}/>
        <Route path="/" element={<MainPage/>}/>
        <Route path="/login" element={<Forbidden/>}/>
        <Route path='*' element={<NotFound/>} />
      </Route>
    </Routes>
    <NotifyContainer/> <----- here
</ErrorBoundary>);
}

###Use it anywhere

NotifyManager.info('Success header', 'Success text')
NotifyManager.error('Error header', 'Error text')

###Uploading file

let id = NotifyManager.id();//it creats unique id
NotifyManager.once(id, '', 'Upload text', 'waiting', 99999999999)//it waits forever

NotifyManager.delete(id);//it deletes a loader
1.1.12

4 months ago

1.1.10

6 months ago

1.1.9

6 months ago

1.1.8

6 months ago

1.1.6

6 months ago

1.1.5

6 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago