diff --git a/ts/components/SessionScrollButton.tsx b/ts/components/SessionScrollButton.tsx index 4b068c2cf..bd5dd9750 100644 --- a/ts/components/SessionScrollButton.tsx +++ b/ts/components/SessionScrollButton.tsx @@ -5,6 +5,7 @@ import { getShowScrollButton } from '../state/selectors/conversations'; import { useSelectedUnreadCount } from '../state/selectors/selectedConversation'; import { SessionIconButton } from './icon'; +import { SessionUnreadCount } from './icon/SessionNotificationCount'; const SessionScrollButtonDiv = styled.div` position: fixed; diff --git a/ts/session/utils/Toast.tsx b/ts/session/utils/Toast.tsx index 1087345ed..7e7be394b 100644 --- a/ts/session/utils/Toast.tsx +++ b/ts/session/utils/Toast.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { toast } from 'react-toastify'; import { SessionToast, SessionToastType } from '../../components/basic/SessionToast'; -import { SessionIconType } from '../../components/icon'; import { SessionSettingCategory } from '../../components/settings/SessionSettings'; import { SectionType, showLeftPaneSection, showSettingsSection } from '../../state/ducks/section'; @@ -38,19 +37,9 @@ export function pushToastInfo( ); } -export function pushToastSuccess( - id: string, - title: string, - description?: string, - icon?: SessionIconType -) { +export function pushToastSuccess(id: string, title: string, description?: string) { toast.success( - , + , { toastId: id, updateId: id } ); } @@ -210,12 +199,7 @@ export function someDeletionsFailed() { } export function pushDeleted(messageCount: number) { - pushToastSuccess( - 'deleted', - window.i18n('deleted', [messageCount.toString()]), - undefined, - 'check' - ); + pushToastSuccess('deleted', window.i18n('deleted', [messageCount.toString()]), undefined); } export function pushCannotRemoveCreatorFromGroup() {