mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix donations toast to show only on resume after restart
This commit is contained in:
@@ -152,7 +152,6 @@ export function DebugLogWindow({
|
||||
</div>
|
||||
<ToastManager
|
||||
changeLocation={shouldNeverBeCalled}
|
||||
clearDonation={shouldNeverBeCalled}
|
||||
OS="unused"
|
||||
hideToast={closeToast}
|
||||
i18n={i18n}
|
||||
@@ -213,7 +212,6 @@ export function DebugLogWindow({
|
||||
</div>
|
||||
<ToastManager
|
||||
changeLocation={shouldNeverBeCalled}
|
||||
clearDonation={shouldNeverBeCalled}
|
||||
OS="unused"
|
||||
hideToast={closeToast}
|
||||
i18n={i18n}
|
||||
|
||||
@@ -285,7 +285,6 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
|
||||
renderToastManager: ({ containerWidthBreakpoint }) => (
|
||||
<ToastManager
|
||||
changeLocation={action('changeLocation')}
|
||||
clearDonation={action('clearDonation')}
|
||||
OS="unused"
|
||||
hideToast={action('hideToast')}
|
||||
i18n={i18n}
|
||||
|
||||
@@ -688,9 +688,6 @@ export function PreferencesDonations({
|
||||
);
|
||||
} else {
|
||||
clearWorkflow();
|
||||
showToast({
|
||||
toastType: ToastType.DonationCompleted,
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -269,7 +269,6 @@ export default {
|
||||
},
|
||||
args: {
|
||||
changeLocation: action('changeLocation'),
|
||||
clearDonation: action('clearDonation'),
|
||||
hideToast: action('hideToast'),
|
||||
openFileInFolder: action('openFileInFolder'),
|
||||
onShowDebugLog: action('onShowDebugLog'),
|
||||
|
||||
@@ -23,7 +23,6 @@ import type { Location } from '../types/Nav';
|
||||
|
||||
export type PropsType = {
|
||||
changeLocation: (newLocation: Location) => unknown;
|
||||
clearDonation: () => unknown;
|
||||
hideToast: () => unknown;
|
||||
i18n: LocalizerType;
|
||||
openFileInFolder: (target: string) => unknown;
|
||||
@@ -49,7 +48,6 @@ const SHORT_TIMEOUT = 3 * SECOND;
|
||||
|
||||
export function renderToast({
|
||||
changeLocation,
|
||||
clearDonation,
|
||||
hideToast,
|
||||
i18n,
|
||||
openFileInFolder,
|
||||
@@ -293,7 +291,6 @@ export function renderToast({
|
||||
<Toast
|
||||
autoDismissDisabled
|
||||
onClose={() => {
|
||||
clearDonation();
|
||||
hideToast();
|
||||
}}
|
||||
toastAction={{
|
||||
|
||||
Reference in New Issue
Block a user