Skip to content
Merged
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
12 changes: 6 additions & 6 deletions src/hooks/useNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const markNotificationRead = useCallback(
async (accounts, id, hostname) => {
async (accounts: AuthState, id: string, hostname: string) => {
setIsFetching(true);

const isEnterprise = isEnterpriseHost(hostname);
Expand Down Expand Up @@ -236,7 +236,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const markNotificationDone = useCallback(
async (accounts, id, hostname) => {
async (accounts: AuthState, id: string, hostname: string) => {
setIsFetching(true);

const isEnterprise = isEnterpriseHost(hostname);
Expand Down Expand Up @@ -269,7 +269,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const unsubscribeNotification = useCallback(
async (accounts, id, hostname) => {
async (accounts: AuthState, id: string, hostname: string) => {
setIsFetching(true);

const isEnterprise = isEnterpriseHost(hostname);
Expand All @@ -295,7 +295,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const markRepoNotifications = useCallback(
async (accounts, repoSlug, hostname) => {
async (accounts: AuthState, repoSlug: string, hostname: string) => {
setIsFetching(true);

const isEnterprise = isEnterpriseHost(hostname);
Expand Down Expand Up @@ -328,7 +328,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const markRepoNotificationsDone = useCallback(
async (accounts, repoSlug, hostname) => {
async (accounts: AuthState, repoSlug: string, hostname: string) => {
setIsFetching(true);

try {
Expand Down Expand Up @@ -371,7 +371,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
);

const removeNotificationFromState = useCallback(
(id, hostname) => {
(id: string, hostname: string) => {
const updatedNotifications = removeNotification(
id,
notifications,
Expand Down