@techcityventures/notifications
v1.0.50
Published
Downloads
59
Keywords
Readme
Notifications Frontend
Install
yarn add @techcityventures/notifications
Usage
import React from 'react'
import { NotificationsDropdown } from "@techcityventures/notifications"
import "@techcityventures/notifications/dist/Notifications.css"
export default({}) => {
return <NotificationsDropdown classes={classes} newNotification={newNotification} onNotificationsUpdate={updateNotifications} />
}
import React from 'react'
import { AllNotificationsPage } from "@techcityventures/notifications"
import "@techcityventures/notifications/dist/Notifications.css"
export default({}) => {
return (
<>
<Router>
<Scroller />
<Switch>
<Route exact={true} path="/notifications" ><Wrapper><AllNotificationsPage classes={classes} /></Wrapper> </Route>
</Switch>
</Router>
</>
)
}