Feat: notification center polling, prevent page moving when opening it

This commit is contained in:
csrapr 2021-02-15 16:09:07 +00:00 committed by Josh Harvey
parent dee7dde195
commit b89ba7d939
3 changed files with 16 additions and 5 deletions

View file

@ -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')),