diff --git a/ts/components/SessionWrapperModal.tsx b/ts/components/SessionWrapperModal.tsx
index 6b650900a..f418476ff 100644
--- a/ts/components/SessionWrapperModal.tsx
+++ b/ts/components/SessionWrapperModal.tsx
@@ -5,7 +5,7 @@ import { SessionIconButton } from './icon/';
// tslint:disable-next-line: no-submodule-imports
import useKey from 'react-use/lib/useKey';
-import { SessionButton } from './basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from './basic/SessionButton2';
export type SessionWrapperModalType = {
title?: string;
@@ -113,15 +113,19 @@ export const SessionWrapperModal = (props: SessionWrapperModalType) => {
{props.children}
- {onClose && showClose ? (
-
- {cancelText || window.i18n('close')}
-
- ) : null}
{onConfirm ? (
-
+
{confirmText || window.i18n('ok')}
-
+
+ ) : null}
+ {onClose && showClose ? (
+
+ {cancelText || window.i18n('close')}
+
) : null}
diff --git a/ts/components/calling/IncomingCallDialog.tsx b/ts/components/calling/IncomingCallDialog.tsx
index 593bcc130..62c32f08e 100644
--- a/ts/components/calling/IncomingCallDialog.tsx
+++ b/ts/components/calling/IncomingCallDialog.tsx
@@ -8,7 +8,7 @@ import { CallManager } from '../../session/utils';
import { callTimeoutMs } from '../../session/utils/calling/CallManager';
import { getHasIncomingCall, getHasIncomingCallFrom } from '../../state/selectors/call';
import { Avatar, AvatarSize } from '../avatar/Avatar';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionWrapperModal } from '../SessionWrapperModal';
export const CallWindow = styled.div`
@@ -79,16 +79,17 @@ export const IncomingCallDialog = () => {
-
+
-
);
diff --git a/ts/components/dialog/AdminLeaveClosedGroupDialog.tsx b/ts/components/dialog/AdminLeaveClosedGroupDialog.tsx
index add1eae62..3f53683e4 100644
--- a/ts/components/dialog/AdminLeaveClosedGroupDialog.tsx
+++ b/ts/components/dialog/AdminLeaveClosedGroupDialog.tsx
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { SpacerLG } from '../basic/Text';
import { getConversationController } from '../../session/conversations';
import { adminLeaveClosedGroup } from '../../state/ducks/modalDialog';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionWrapperModal } from '../SessionWrapperModal';
type Props = {
@@ -37,8 +37,17 @@ export const AdminLeaveClosedGroupDialog = (props: Props) => {
{warningAsAdmin}
-
-
+
+
);
diff --git a/ts/components/dialog/BanOrUnbanUserDialog.tsx b/ts/components/dialog/BanOrUnbanUserDialog.tsx
index 4df761d28..81702bdab 100644
--- a/ts/components/dialog/BanOrUnbanUserDialog.tsx
+++ b/ts/components/dialog/BanOrUnbanUserDialog.tsx
@@ -8,7 +8,7 @@ import { SpacerSM } from '../basic/Text';
import { getConversationController } from '../../session/conversations/ConversationController';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { SessionSpinner } from '../basic/SessionSpinner';
-import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { ConversationModel } from '../../models/conversation';
import { useFocusMount } from '../../hooks/useFocusMount';
import { useConversationPropsById } from '../../hooks/useParamSelector';
@@ -140,9 +140,8 @@ export const BanOrUnBanUserDialog = (props: {
value={wasGivenAPubkey ? inputTextToDisplay : inputBoxValue}
/>
-
- {
{
setDeleteEverythingWithNetwork(true);
}}
@@ -208,8 +202,7 @@ export const DeleteAccountModal = () => {
{
setDeleteDeviceOnly(true);
}}
@@ -240,8 +233,7 @@ export const DeleteAccountModal = () => {
{
if (deleteDeviceOnly) {
void onDeleteEverythingLocallyOnly();
@@ -254,8 +246,7 @@ export const DeleteAccountModal = () => {
{
dispatch(updateDeleteAccountModal(null));
}}
diff --git a/ts/components/dialog/EditProfileDialog.tsx b/ts/components/dialog/EditProfileDialog.tsx
index 69270fdd5..775f62c7f 100644
--- a/ts/components/dialog/EditProfileDialog.tsx
+++ b/ts/components/dialog/EditProfileDialog.tsx
@@ -13,7 +13,7 @@ import { SpacerLG, SpacerMD } from '../basic/Text';
import autoBind from 'auto-bind';
import { editProfileModal } from '../../state/ducks/modalDialog';
import { uploadOurAvatar } from '../../interactions/conversationInteractions';
-import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonType } from '../basic/SessionButton2';
import { SessionSpinner } from '../basic/SessionSpinner';
import { SessionIconButton } from '../icon';
import { MAX_USERNAME_LENGTH } from '../registration/RegistrationStages';
@@ -98,8 +98,6 @@ export class EditProfileDialog extends React.Component<{}, State> {
headerIconButtons={backButton}
showExitIcon={true}
>
-
-
{viewQR && }
{viewDefault && this.renderDefaultView()}
{viewEdit && this.renderEditView()}
@@ -108,14 +106,12 @@ export class EditProfileDialog extends React.Component<{}, State> {
-
{viewDefault || viewQR ? (
- {
window.clipboard.writeText(sessionID);
ToastUtils.pushCopiedToClipBoard();
@@ -124,18 +120,15 @@ export class EditProfileDialog extends React.Component<{}, State> {
/>
) : (
!this.state.loading && (
-
)
)}
-
-
diff --git a/ts/components/dialog/InviteContactsDialog.tsx b/ts/components/dialog/InviteContactsDialog.tsx
index 2d95a9629..e25314c30 100644
--- a/ts/components/dialog/InviteContactsDialog.tsx
+++ b/ts/components/dialog/InviteContactsDialog.tsx
@@ -11,7 +11,7 @@ import { useDispatch, useSelector } from 'react-redux';
import { updateInviteContactModal } from '../../state/ducks/modalDialog';
// tslint:disable-next-line: no-submodule-imports
import useKey from 'react-use/lib/useKey';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { MemberListItem } from '../MemberListItem';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { getPrivateContactsPubkeys } from '../../state/selectors/conversations';
@@ -177,12 +177,17 @@ const InviteContactsDialogInner = (props: Props) => {
-
-
+
diff --git a/ts/components/dialog/ModeratorsAddDialog.tsx b/ts/components/dialog/ModeratorsAddDialog.tsx
index 89b421d63..37264351a 100644
--- a/ts/components/dialog/ModeratorsAddDialog.tsx
+++ b/ts/components/dialog/ModeratorsAddDialog.tsx
@@ -5,7 +5,7 @@ import { Flex } from '../basic/Flex';
import { getConversationController } from '../../session/conversations';
import { useDispatch, useSelector } from 'react-redux';
import { updateAddModeratorsModal } from '../../state/ducks/modalDialog';
-import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonType } from '../basic/SessionButton2';
import { SessionSpinner } from '../basic/SessionSpinner';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { sogsV3AddAdmin } from '../../session/apis/open_group_api/sogsv3/sogsV3AddRemoveMods';
@@ -92,9 +92,8 @@ export const AddModeratorsDialog = (props: Props) => {
value={inputBoxValue}
autoFocus={true}
/>
- {
)}
-
-
{
.get(convoId)
.toOpenGroupV2();
- const confirmButtonColor = darkMode ? SessionButtonColor.Green : SessionButtonColor.Secondary;
-
const handleClose = () => {
dispatch(updateReactClearAllModal(null));
};
@@ -97,17 +95,16 @@ export const ReactClearAllModal = (props: Props): ReactElement => {
>
{window.i18n('clearAllReactions', [reaction])}
-
-
diff --git a/ts/components/dialog/ReactListModal.tsx b/ts/components/dialog/ReactListModal.tsx
index 4c5ac2375..f35c28779 100644
--- a/ts/components/dialog/ReactListModal.tsx
+++ b/ts/components/dialog/ReactListModal.tsx
@@ -16,6 +16,7 @@ import { nativeEmojiData } from '../../util/emoji';
import { Reactions } from '../../util/reactions';
import { Avatar, AvatarSize } from '../avatar/Avatar';
import { Flex } from '../basic/Flex';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionHtmlRenderer } from '../basic/SessionHTMLRenderer';
import { ContactName } from '../conversation/ContactName';
import { MessageReactions } from '../conversation/message/message-content/MessageReactions';
@@ -61,6 +62,11 @@ const StyledReactionBar = styled(Flex)`
margin-right: 8px;
}
}
+
+ .session-button {
+ font-weight: 400;
+ padding: 0px;
+ }
`;
const StyledReactionSender = styled(Flex)`
@@ -76,12 +82,6 @@ const StyledReactionSender = styled(Flex)`
}
`;
-const StyledClearButton = styled.button`
- font-size: var(--font-size-sm);
- color: var(--color-destructive);
- border: none;
-`;
-
type ReactionSendersProps = {
messageId: string;
currentReact: string;
@@ -348,9 +348,12 @@ export const ReactListModal = (props: Props): ReactElement => {
)}
{isPublic && weAreModerator && (
-
- {window.i18n('clearAll')}
-
+
)}
{senders && senders.length > 0 && (
diff --git a/ts/components/dialog/SessionConfirm.tsx b/ts/components/dialog/SessionConfirm.tsx
index 41f76ad09..fbcf90a07 100644
--- a/ts/components/dialog/SessionConfirm.tsx
+++ b/ts/components/dialog/SessionConfirm.tsx
@@ -50,8 +50,8 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
title = '',
message = '',
messageSub = '',
- okTheme = SessionButtonColor.Primary,
- closeTheme,
+ okTheme,
+ closeTheme = SessionButtonColor.Danger,
onClickOk,
onClickClose,
hideCancel = false,
@@ -138,8 +138,7 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
@@ -147,8 +146,7 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
diff --git a/ts/components/dialog/SessionModal.tsx b/ts/components/dialog/SessionModal.tsx
index 5f8f1a348..7758ee0d9 100644
--- a/ts/components/dialog/SessionModal.tsx
+++ b/ts/components/dialog/SessionModal.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import classNames from 'classnames';
-import { SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
+import { SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionIconButton, SessionIconType } from '../icon';
interface Props {
diff --git a/ts/components/dialog/SessionNicknameDialog.tsx b/ts/components/dialog/SessionNicknameDialog.tsx
index 6739b11ab..bb7be4c3b 100644
--- a/ts/components/dialog/SessionNicknameDialog.tsx
+++ b/ts/components/dialog/SessionNicknameDialog.tsx
@@ -5,7 +5,7 @@ import _ from 'lodash';
import { SpacerLG } from '../basic/Text';
import { useDispatch } from 'react-redux';
import { changeNickNameModal } from '../../state/ducks/modalDialog';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionWrapperModal } from '../SessionWrapperModal';
type Props = {
@@ -70,11 +70,16 @@ export const SessionNicknameDialog = (props: Props) => {
/>
-
-
+
diff --git a/ts/components/dialog/SessionPasswordDialog.tsx b/ts/components/dialog/SessionPasswordDialog.tsx
index b7cdce854..e673f8264 100644
--- a/ts/components/dialog/SessionPasswordDialog.tsx
+++ b/ts/components/dialog/SessionPasswordDialog.tsx
@@ -7,12 +7,7 @@ import { SpacerLG, SpacerSM } from '../basic/Text';
import autoBind from 'auto-bind';
import { sessionPassword } from '../../state/ducks/modalDialog';
import { LocalizerKeys } from '../../types/LocalizerKeys';
-import {
- SessionButton2,
- SessionButtonColor,
- SessionButtonShape,
- SessionButtonType,
-} from '../basic/SessionButton2';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { matchesHash, validatePassword } from '../../util/passwordUtils';
@@ -64,7 +59,6 @@ export class SessionPasswordDialog extends React.Component {
]
: [window.i18n('enterPassword'), window.i18n('confirmPassword')];
- const confirmButtonColor = passwordAction === 'remove' ? SessionButtonColor.Danger : undefined;
// do this separately so typescript's compiler likes it
const localizedKeyAction: LocalizerKeys =
passwordAction === 'change'
@@ -114,15 +108,14 @@ export class SessionPasswordDialog extends React.Component {
diff --git a/ts/components/dialog/SessionSeedModal.tsx b/ts/components/dialog/SessionSeedModal.tsx
index e99f34dd0..e225e4cb5 100644
--- a/ts/components/dialog/SessionSeedModal.tsx
+++ b/ts/components/dialog/SessionSeedModal.tsx
@@ -8,7 +8,7 @@ import { mn_decode } from '../../session/crypto/mnemonic';
import { SpacerLG, SpacerSM, SpacerXS } from '../basic/Text';
import { recoveryPhraseModal } from '../../state/ducks/modalDialog';
import { useDispatch } from 'react-redux';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { getCurrentRecoveryPhrase } from '../../util/storage';
@@ -72,8 +72,17 @@ const Password = (props: PasswordProps) => {
-
-
+
+
>
);
@@ -105,27 +114,26 @@ const Seed = (props: SeedProps) => {
return (
<>
-
{i18n('recoveryPhraseSavePromptMain')}
-
+
+ {i18n('recoveryPhraseSavePromptMain')}
+
{recoveryPhrase}
-
+
+
+
- {
copyRecoveryPhrase(recoveryPhrase);
}}
/>
-
-
-
-
>
);
};
diff --git a/ts/components/dialog/UpdateGroupMembersDialog.tsx b/ts/components/dialog/UpdateGroupMembersDialog.tsx
index e108b71b1..2ffa63e14 100644
--- a/ts/components/dialog/UpdateGroupMembersDialog.tsx
+++ b/ts/components/dialog/UpdateGroupMembersDialog.tsx
@@ -5,7 +5,7 @@ import { ToastUtils, UserUtils } from '../../session/utils';
import _ from 'lodash';
import { SpacerLG, Text } from '../basic/Text';
import { updateGroupMembersModal } from '../../state/ducks/modalDialog';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { MemberListItem } from '../MemberListItem';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { useDispatch } from 'react-redux';
@@ -243,10 +243,15 @@ export const UpdateGroupMembersDialog = (props: Props) => {
-
{weAreAdmin && (
-
+
)}
+
);
diff --git a/ts/components/dialog/UpdateGroupNameDialog.tsx b/ts/components/dialog/UpdateGroupNameDialog.tsx
index a2f847afe..37af721cf 100644
--- a/ts/components/dialog/UpdateGroupNameDialog.tsx
+++ b/ts/components/dialog/UpdateGroupNameDialog.tsx
@@ -8,7 +8,7 @@ import autoBind from 'auto-bind';
import { ConversationModel } from '../../models/conversation';
import { getConversationController } from '../../session/conversations';
import { SessionWrapperModal } from '../SessionWrapperModal';
-import { SessionButton, SessionButtonColor } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonColor, SessionButtonType } from '../basic/SessionButton2';
import { initiateOpenGroupUpdate } from '../../session/group/open-group';
import { initiateClosedGroupUpdate } from '../../session/group/closed-group';
import { pickFileForAvatar } from '../../types/attachments/VisualAttachment';
@@ -129,12 +129,16 @@ export class UpdateGroupNameDialog extends React.Component {
) : null}
-
-
-
+
diff --git a/ts/components/settings/SessionSettings.tsx b/ts/components/settings/SessionSettings.tsx
index d991228be..3c85e27c2 100644
--- a/ts/components/settings/SessionSettings.tsx
+++ b/ts/components/settings/SessionSettings.tsx
@@ -9,7 +9,7 @@ import { SessionNotificationGroupSettings } from './SessionNotificationGroupSett
import { CategoryConversations } from './section/CategoryConversations';
import { SettingsCategoryPrivacy } from './section/CategoryPrivacy';
import { SettingsCategoryAppearance } from './section/CategoryAppearance';
-import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';
+import { SessionButton2, SessionButtonType } from '../basic/SessionButton2';
import { Data } from '../../data/data';
import { matchesHash } from '../../util/passwordUtils';
import { SettingsCategoryPermissions } from './section/CategoryPermissions';
@@ -125,9 +125,8 @@ const PasswordLock = ({
{pwdLockError && {pwdLockError}
}
-