Skip to content

Commit

Permalink
feat: unify notifications fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Dec 5, 2024
1 parent e5b8de8 commit 85045d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/home/home.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { grid } from "../the-grid";
import { authentication } from "./authentication";
import { displayNotifications } from "./fetch-github/fetch-and-display-previews";
import { fetchIssueNotifications, fetchPullRequestNotifications } from "./fetch-github/fetch-data";
import { fetchAllNotifications, fetchIssueNotifications, fetchPullRequestNotifications } from "./fetch-github/fetch-data";
import { readyToolbar } from "./ready-toolbar";
import { renderServiceMessage } from "./render-service-message";
import { renderErrorInModal } from "./rendering/display-popup-modal";
Expand All @@ -28,8 +28,7 @@ if (!notificationsContainer) {
throw new Error("Could not find issues container");
}

export const pullRequestNotifications = void fetchPullRequestNotifications();
export const issueNotifications = void fetchIssueNotifications();
export const notifications = void fetchAllNotifications();

void (async function home() {
void authentication();
Expand Down

0 comments on commit 85045d7

Please sign in to comment.