Feat: notification center polling, prevent page moving when opening it
This commit is contained in:
parent
dee7dde195
commit
b89ba7d939
3 changed files with 16 additions and 5 deletions
|
|
@ -53,7 +53,9 @@ const CLEAR_ALL_NOTIFICATIONS = gql`
|
|||
|
||||
const NotificationCenter = ({ close, notifyUnread }) => {
|
||||
const classes = useStyles()
|
||||
const { data, loading } = useQuery(GET_NOTIFICATIONS)
|
||||
const { data, loading } = useQuery(GET_NOTIFICATIONS, {
|
||||
pollInterval: 60000
|
||||
})
|
||||
const [showingUnread, setShowingUnread] = useState(false)
|
||||
const machines = R.compose(
|
||||
R.map(R.prop('name')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue