Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test code for notifications #518

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions www/src/components/layout/DEBUG_NOTIFCATIONS.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions www/src/components/layout/WithNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import usePaginatedQuery from '../../hooks/usePaginatedQuery'
import InfiniteScroller from '../utils/InfiniteScroller'

import { NOTIFICATIONS_QUERY } from './queries'
// import { DEBUG_NOTIFCATIONS } from './DEBUG_NOTIFCATIONS'

type WithNotificationsProps = {
children: ({
Expand Down Expand Up @@ -43,12 +42,6 @@ export function NotificationsPanel({ closePanel }) {
{ variables: {} },
data => data.notifications)

// Uncomment below (and comment out above) to load debug notifications
// const notifications = DEBUG_NOTIFCATIONS
// const loadingNotifications = false
// const hasMoreNotifications = false
// const fetchMoreNotifications = () => {}

if (!notifications.length) {
return <P padding="medium">You do not have any notifications yet.</P>
}
Expand Down