mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Init Chat Folders UI
This commit is contained in:
@@ -38,8 +38,8 @@ import {
|
||||
MessageRequestState,
|
||||
} from './MessageRequestActionsConfirmation.js';
|
||||
import type { MinimalConversation } from '../../hooks/useMinimalConversation.js';
|
||||
import { LocalDeleteWarningModal } from '../LocalDeleteWarningModal.js';
|
||||
import { InAnotherCallTooltip } from './InAnotherCallTooltip.js';
|
||||
import { DeleteMessagesConfirmationDialog } from '../DeleteMessagesConfirmationDialog.js';
|
||||
|
||||
function HeaderInfoTitle({
|
||||
name,
|
||||
@@ -1003,50 +1003,3 @@ function CannotLeaveGroupBecauseYouAreLastAdminAlert({
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function DeleteMessagesConfirmationDialog({
|
||||
i18n,
|
||||
localDeleteWarningShown,
|
||||
onDestroyMessages,
|
||||
onClose,
|
||||
setLocalDeleteWarningShown,
|
||||
}: {
|
||||
i18n: LocalizerType;
|
||||
localDeleteWarningShown: boolean;
|
||||
onDestroyMessages: () => void;
|
||||
onClose: () => void;
|
||||
setLocalDeleteWarningShown: () => void;
|
||||
}) {
|
||||
if (!localDeleteWarningShown) {
|
||||
return (
|
||||
<LocalDeleteWarningModal
|
||||
i18n={i18n}
|
||||
onClose={setLocalDeleteWarningShown}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const dialogBody = i18n(
|
||||
'icu:ConversationHeader__DeleteConversationConfirmation__description-with-sync'
|
||||
);
|
||||
|
||||
return (
|
||||
<ConfirmationDialog
|
||||
dialogName="ConversationHeader.destroyMessages"
|
||||
title={i18n(
|
||||
'icu:ConversationHeader__DeleteConversationConfirmation__title'
|
||||
)}
|
||||
actions={[
|
||||
{
|
||||
action: onDestroyMessages,
|
||||
style: 'negative',
|
||||
text: i18n('icu:delete'),
|
||||
},
|
||||
]}
|
||||
i18n={i18n}
|
||||
onClose={onClose}
|
||||
>
|
||||
{dialogBody}
|
||||
</ConfirmationDialog>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -209,13 +209,13 @@ export function PollMessageContents({
|
||||
|
||||
{totalVotes > 0 ? (
|
||||
<div className={tw('mt-4 flex justify-center scheme-light')}>
|
||||
<AxoButton
|
||||
<AxoButton.Root
|
||||
size="medium"
|
||||
variant="floating-secondary"
|
||||
onClick={() => setShowVotesModal(true)}
|
||||
>
|
||||
{i18n('icu:PollMessage__ViewVotesButton')}
|
||||
</AxoButton>
|
||||
</AxoButton.Root>
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user