diff --git a/ts/components/conversation/message/MessagePreview.tsx b/ts/components/conversation/message/MessagePreview.tsx
index 0853402759..e4d49110ac 100644
--- a/ts/components/conversation/message/MessagePreview.tsx
+++ b/ts/components/conversation/message/MessagePreview.tsx
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import React from 'react';
import { isImageAttachment } from '../../../types/Attachment';
-import { SessionIcon, SessionIconSize, SessionIconType } from '../../session/icon';
+import { SessionIcon } from '../../session/icon';
import { ImageGrid } from '../ImageGrid';
import { Image } from '../Image';
import { MINIMUM_LINK_PREVIEW_IMAGE_WIDTH } from '../Message';
@@ -63,7 +63,7 @@ export const MessagePreview = (props: Props) => {
diff --git a/ts/components/conversation/message/OutgoingMessageStatus.tsx b/ts/components/conversation/message/OutgoingMessageStatus.tsx
index 8285d834ce..f7de7dfb84 100644
--- a/ts/components/conversation/message/OutgoingMessageStatus.tsx
+++ b/ts/components/conversation/message/OutgoingMessageStatus.tsx
@@ -1,7 +1,7 @@
import React from 'react';
-import styled, { useTheme } from 'styled-components';
+import styled from 'styled-components';
import { MessageDeliveryStatus } from '../../../models/messageType';
-import { SessionIcon, SessionIconSize, SessionIconType } from '../../session/icon';
+import { SessionIcon } from '../../session/icon';
const MessageStatusSendingContainer = styled.div`
display: inline-block;
@@ -10,56 +10,38 @@ const MessageStatusSendingContainer = styled.div`
`;
const MessageStatusSending = () => {
- const iconColor = useTheme().colors.textColor;
+ const iconColor = 'var(--color-text)';
return (
-
+
);
};
const MessageStatusSent = () => {
- const iconColor = useTheme().colors.textColor;
+ const iconColor = 'var(--color-text)';
return (
-
+
);
};
const MessageStatusRead = () => {
- const iconColor = useTheme().colors.textColor;
+ const iconColor = 'var(--color-text)';
return (
-
+
);
};
const MessageStatusError = () => {
- const theme = useTheme();
return (
-
+
);
};
diff --git a/ts/components/dialog/EditProfileDialog.tsx b/ts/components/dialog/EditProfileDialog.tsx
index 5b9c63cce5..dfd7d09f1e 100644
--- a/ts/components/dialog/EditProfileDialog.tsx
+++ b/ts/components/dialog/EditProfileDialog.tsx
@@ -6,7 +6,7 @@ import { Avatar, AvatarSize } from '../Avatar';
import { SessionButton, SessionButtonColor, SessionButtonType } from '../session/SessionButton';
-import { SessionIconButton, SessionIconSize, SessionIconType } from '../session/icon';
+import { SessionIconButton } from '../session/icon';
import { PillDivider } from '../session/PillDivider';
import { SyncUtils, ToastUtils, UserUtils } from '../../session/utils';
import { MAX_USERNAME_LENGTH } from '../session/registration/RegistrationStages';
@@ -72,7 +72,7 @@ export class EditProfileDialog extends React.Component<{}, State> {
viewEdit || viewQR
? [
{
- iconType: SessionIconType.Chevron,
+ iconType: 'chevron',
iconRotation: 90,
onClick: () => {
this.setState({ mode: 'default' });
@@ -149,8 +149,8 @@ export class EditProfileDialog extends React.Component<{}, State> {
/>
{
this.setState(state => ({ ...state, mode: 'qr' }));
@@ -184,8 +184,8 @@ export class EditProfileDialog extends React.Component<{}, State> {
{name}
{
this.setState({ mode: 'edit' });
}}
diff --git a/ts/components/dialog/OnionStatusPathDialog.tsx b/ts/components/dialog/OnionStatusPathDialog.tsx
index 3804736a2b..42b94ff9f8 100644
--- a/ts/components/dialog/OnionStatusPathDialog.tsx
+++ b/ts/components/dialog/OnionStatusPathDialog.tsx
@@ -7,7 +7,6 @@ import { useDispatch, useSelector } from 'react-redux';
import ip2country from 'ip2country';
import countryLookup from 'country-code-lookup';
-import { useTheme } from 'styled-components';
import { Snode } from '../../data/data';
import { onionPathModal } from '../../state/ducks/modalDialog';
import {
@@ -16,9 +15,8 @@ import {
getIsOnline,
getOnionPathsCount,
} from '../../state/selectors/onions';
-import { getTheme } from '../../state/selectors/theme';
import { Flex } from '../basic/Flex';
-import { SessionIcon, SessionIconButton, SessionIconSize, SessionIconType } from '../session/icon';
+import { SessionIcon, SessionIconButton } from '../session/icon';
import { SessionSpinner } from '../session/SessionSpinner';
import { SessionWrapperModal } from '../session/SessionWrapperModal';
@@ -98,13 +96,12 @@ export type OnionNodeStatusLightType = {
*/
export const OnionNodeStatusLight = (props: OnionNodeStatusLightType): JSX.Element => {
const { glowStartDelay, glowDuration } = props;
- const theme = useTheme();
return (
);
};
@@ -114,18 +111,16 @@ export const OnionNodeStatusLight = (props: OnionNodeStatusLightType): JSX.Eleme
*/
export const ModalStatusLight = (props: StatusLightType) => {
const { glowStartDelay, glowDuration, color } = props;
- const theme = useSelector(getTheme);
return (
);
@@ -140,15 +135,14 @@ export const ActionPanelOnionStatusLight = (props: {
}) => {
const { isSelected, handleClick } = props;
- const theme = useTheme();
const onionPathsCount = useSelector(getOnionPathsCount);
const firstPathLength = useSelector(getFirstOnionPathLength);
const isOnline = useSelector(getIsOnline);
// Set icon color based on result
- const red = theme.colors.destructive;
- const green = theme.colors.accent;
- const orange = theme.colors.warning;
+ const red = 'var(--color-destructive)';
+ const green = 'var(--color-accent)';
+ const orange = 'var(--color-warning)';
// start with red
let iconColor = red;
@@ -159,15 +153,14 @@ export const ActionPanelOnionStatusLight = (props: {
return (
);
};
diff --git a/ts/components/dialog/SessionConfirm.tsx b/ts/components/dialog/SessionConfirm.tsx
index db536a595c..0a338bf5d9 100644
--- a/ts/components/dialog/SessionConfirm.tsx
+++ b/ts/components/dialog/SessionConfirm.tsx
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
import { SessionButton, SessionButtonColor } from '../session/SessionButton';
import { SessionHtmlRenderer } from '../session/SessionHTMLRenderer';
import { SessionIcon, SessionIconSize, SessionIconType } from '../session/icon';
-import { DefaultTheme, useTheme, withTheme } from 'styled-components';
import { SessionWrapperModal } from '../session/SessionWrapperModal';
import { updateConfirmModal } from '../../state/ducks/modalDialog';
import { SpacerLG } from '../basic/Text';
@@ -24,12 +23,11 @@ export interface SessionConfirmDialogProps {
closeTheme?: SessionButtonColor;
sessionIcon?: SessionIconType;
iconSize?: SessionIconSize;
- theme?: DefaultTheme;
shouldShowConfirm?: boolean | undefined;
showExitIcon?: boolean | undefined;
}
-const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
+export const SessionConfirm = (props: SessionConfirmDialogProps) => {
const {
title = '',
message = '',
@@ -52,8 +50,6 @@ const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
const cancelText = props.cancelText || window.i18n('cancel');
const showHeader = !!props.title;
- const theme = useTheme();
-
const messageSubText = messageSub ? 'session-confirm-main-message' : 'subtle';
const onClickOkHandler = async () => {
@@ -102,7 +98,7 @@ const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
{sessionIcon && iconSize && (
<>
-
+
>
)}
@@ -130,5 +126,3 @@ const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
);
};
-
-export const SessionConfirm = withTheme(SessionConfirmInner);
diff --git a/ts/components/dialog/SessionModal.tsx b/ts/components/dialog/SessionModal.tsx
index 0a42e6384e..3e94fc6252 100644
--- a/ts/components/dialog/SessionModal.tsx
+++ b/ts/components/dialog/SessionModal.tsx
@@ -1,8 +1,7 @@
import React from 'react';
import classNames from 'classnames';
-import { DefaultTheme } from 'styled-components';
-import { SessionIconButton, SessionIconSize, SessionIconType } from '../session/icon';
+import { SessionIconButton, SessionIconType } from '../session/icon';
import { SessionButtonColor, SessionButtonType } from '../session/SessionButton';
interface Props {
@@ -23,7 +22,6 @@ interface Props {
text: string;
onClick?: any;
}>;
- theme: DefaultTheme;
}
interface State {
@@ -81,12 +79,7 @@ export class SessionModal extends React.PureComponent
{
{showExitIcon ? (
-
+
) : null}
{title}
@@ -97,10 +90,9 @@ export class SessionModal extends React.PureComponent
{
);
})
diff --git a/ts/components/dialog/SessionNicknameDialog.tsx b/ts/components/dialog/SessionNicknameDialog.tsx
index cb917f4007..47dd9bbf6f 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 } from '../session/SessionButton';
+import { SessionButton, SessionButtonColor } from '../session/SessionButton';
import { SessionWrapperModal } from '../session/SessionWrapperModal';
type Props = {
@@ -70,7 +70,11 @@ export const SessionNicknameDialog = (props: Props) => {
/>
-
+
diff --git a/ts/components/dialog/SessionPasswordDialog.tsx b/ts/components/dialog/SessionPasswordDialog.tsx
index 8e0f48314e..a9d4edc1cc 100644
--- a/ts/components/dialog/SessionPasswordDialog.tsx
+++ b/ts/components/dialog/SessionPasswordDialog.tsx
@@ -3,7 +3,6 @@ import React from 'react';
import { SessionButton, SessionButtonColor } from '../session/SessionButton';
import { missingCaseError, PasswordUtil } from '../../util';
import { ToastUtils } from '../../session/utils';
-import { SessionIconType } from '../session/icon';
import { getPasswordHash } from '../../data/data';
import { SessionWrapperModal } from '../session/SessionWrapperModal';
import { SpacerLG, SpacerSM } from '../basic/Text';
@@ -58,7 +57,7 @@ export class SessionPasswordDialog extends React.Component {
: [window.i18n('enterPassword'), window.i18n('confirmPassword')];
const confirmButtonColor =
- passwordAction === 'remove' ? SessionButtonColor.Danger : SessionButtonColor.Primary;
+ passwordAction === 'remove' ? SessionButtonColor.Danger : SessionButtonColor.Green;
return (
{
'setPasswordSuccessToast',
window.i18n('setPasswordTitle'),
window.i18n('setPasswordToastDescription'),
- SessionIconType.Lock
+ 'lock'
);
this.props.onOk();
@@ -209,7 +208,7 @@ export class SessionPasswordDialog extends React.Component {
'setPasswordSuccessToast',
window.i18n('changePasswordTitle'),
window.i18n('changePasswordToastDescription'),
- SessionIconType.Lock
+ 'lock'
);
this.props.onOk();
diff --git a/ts/components/dialog/SessionSeedModal.tsx b/ts/components/dialog/SessionSeedModal.tsx
index 3e61e716d3..538f9b184e 100644
--- a/ts/components/dialog/SessionSeedModal.tsx
+++ b/ts/components/dialog/SessionSeedModal.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
-import { SessionButton } from '../session/SessionButton';
+import { SessionButton, SessionButtonColor } from '../session/SessionButton';
import { ToastUtils, UserUtils } from '../../session/utils';
import { PasswordUtil } from '../../util';
import { getPasswordHash } from '../../data/data';
@@ -111,18 +111,19 @@ const Seed = (props: SeedProps) => {
{recoveryPhrase}
-
-
-
-
{
copyRecoveryPhrase(recoveryPhrase);
}}
/>
+
+
+
+
>
);
};
@@ -190,7 +191,6 @@ const SessionSeedModalInner = (props: ModalInnerProps) => {
)}
)}
- :
>
);
};
diff --git a/ts/components/dialog/UserDetailsDialog.tsx b/ts/components/dialog/UserDetailsDialog.tsx
index 5d08d067a7..10166436ce 100644
--- a/ts/components/dialog/UserDetailsDialog.tsx
+++ b/ts/components/dialog/UserDetailsDialog.tsx
@@ -1,13 +1,15 @@
import React, { useState } from 'react';
+// tslint:disable no-submodule-imports
+
+import useCopyToClipboard from 'react-use/lib/useCopyToClipboard';
-// tslint:disable-next-line: no-submodule-imports
import useKey from 'react-use/lib/useKey';
import { ConversationTypeEnum } from '../../models/conversation';
import { getConversationController } from '../../session/conversations';
import { openConversationWithMessages } from '../../state/ducks/conversations';
import { updateUserDetailsModal } from '../../state/ducks/modalDialog';
import { Avatar, AvatarSize } from '../Avatar';
-import { SpacerMD } from '../basic/Text';
+import { SpacerLG } from '../basic/Text';
import { SessionButton, SessionButtonColor, SessionButtonType } from '../session/SessionButton';
import { SessionIdEditable } from '../session/SessionIdEditable';
import { SessionWrapperModal } from '../session/SessionWrapperModal';
@@ -24,6 +26,8 @@ export const UserDetailsDialog = (props: Props) => {
const size = isEnlargedImageShown ? AvatarSize.HUGE : AvatarSize.XL;
const userName = props.userName || props.conversationId;
+ const [_, copyToClipboard] = useCopyToClipboard();
+
function closeDialog() {
window.inboxStore?.dispatch(updateUserDetailsModal(null));
}
@@ -63,14 +67,22 @@ export const UserDetailsDialog = (props: Props) => {
-
+
{
+ copyToClipboard(props.conversationId);
+ }}
+ />
+
diff --git a/ts/components/session/AccentText.tsx b/ts/components/session/AccentText.tsx
index d7a562afc5..6a099689dc 100644
--- a/ts/components/session/AccentText.tsx
+++ b/ts/components/session/AccentText.tsx
@@ -1,11 +1,7 @@
import React from 'react';
-import { SessionHtmlRenderer } from './SessionHTMLRenderer';
-
export const AccentText: React.FC = () => (
-
-
-
+
{window.i18n('beginYourSession')}
);
diff --git a/ts/components/session/ActionsPanel.tsx b/ts/components/session/ActionsPanel.tsx
index d12d6cb15c..cd2930b2cb 100644
--- a/ts/components/session/ActionsPanel.tsx
+++ b/ts/components/session/ActionsPanel.tsx
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react';
-import { SessionIconButton, SessionIconSize, SessionIconType } from './icon';
+import { SessionIconButton, SessionIconType } from './icon';
import { Avatar, AvatarSize } from '../Avatar';
-import { darkTheme, lightTheme } from '../../state/ducks/SessionTheme';
import { SessionToastContainer } from './SessionToastContainer';
import { getConversationController } from '../../session/conversations';
import { syncConfigurationIfNeeded } from '../../session/utils/syncUtils';
@@ -23,7 +22,6 @@ import {
getOurPrimaryConversation,
getUnreadMessageCount,
} from '../../state/selectors/conversations';
-import { getTheme } from '../../state/selectors/theme';
import { applyTheme } from '../../state/ducks/theme';
import { getFocusedSection } from '../../state/selectors/section';
import { useInterval } from '../../hooks/useInterval';
@@ -45,10 +43,10 @@ import { loadDefaultRooms } from '../../opengroup/opengroupV2/ApiUtil';
// tslint:disable-next-line: no-import-side-effect no-submodule-imports
import { ActionPanelOnionStatusLight } from '../dialog/OnionStatusPathDialog';
+import { switchHtmlToDarkTheme, switchHtmlToLightTheme } from '../../state/ducks/SessionTheme';
const Section = (props: { type: SectionType; avatarPath?: string | null }) => {
const ourNumber = useSelector(getOurNumber);
const unreadMessageCount = useSelector(getUnreadMessageCount);
- const theme = useSelector(getTheme);
const dispatch = useDispatch();
const { type, avatarPath } = props;
@@ -63,8 +61,13 @@ const Section = (props: { type: SectionType; avatarPath?: string | null }) => {
const themeFromSettings = window.Events.getThemeSetting();
const updatedTheme = themeFromSettings === 'dark' ? 'light' : 'dark';
window.setTheme(updatedTheme);
+ if (updatedTheme === 'dark') {
+ switchHtmlToDarkTheme();
+ } else {
+ switchHtmlToLightTheme();
+ }
- const newThemeObject = updatedTheme === 'dark' ? darkTheme : lightTheme;
+ const newThemeObject = updatedTheme === 'dark' ? 'dark' : 'light';
dispatch(applyTheme(newThemeObject));
} else if (type === SectionType.PathIndicator) {
// Show Path Indicator Modal
@@ -96,19 +99,19 @@ const Section = (props: { type: SectionType; avatarPath?: string | null }) => {
let iconType: SessionIconType;
switch (type) {
case SectionType.Message:
- iconType = SessionIconType.ChatBubble;
+ iconType = 'chatBubble';
break;
case SectionType.Contact:
- iconType = SessionIconType.Users;
+ iconType = 'users';
break;
case SectionType.Settings:
- iconType = SessionIconType.Gear;
+ iconType = 'gear';
break;
case SectionType.Moon:
- iconType = SessionIconType.Moon;
+ iconType = 'moon';
break;
default:
- iconType = SessionIconType.Moon;
+ iconType = 'moon';
}
const iconColor = undefined;
@@ -118,13 +121,12 @@ const Section = (props: { type: SectionType; avatarPath?: string | null }) => {
) : (
)}
>
@@ -136,8 +138,12 @@ const cleanUpMediasInterval = DURATION.MINUTES * 30;
const setupTheme = () => {
const theme = window.Events.getThemeSetting();
window.setTheme(theme);
-
- const newThemeObject = theme === 'dark' ? darkTheme : lightTheme;
+ if (theme === 'dark') {
+ switchHtmlToDarkTheme();
+ } else {
+ switchHtmlToLightTheme();
+ }
+ const newThemeObject = theme === 'dark' ? 'dark' : 'light';
window?.inboxStore?.dispatch(applyTheme(newThemeObject));
};
diff --git a/ts/components/session/LeftPaneMessageSection.tsx b/ts/components/session/LeftPaneMessageSection.tsx
index 070fa6dad2..0aabe6e5d0 100644
--- a/ts/components/session/LeftPaneMessageSection.tsx
+++ b/ts/components/session/LeftPaneMessageSection.tsx
@@ -14,7 +14,6 @@ import { SessionSearchInput } from './SessionSearchInput';
import { cleanSearchTerm } from '../../util/cleanSearchTerm';
import { RowRendererParamsType } from '../LeftPane';
import { SessionClosableOverlay, SessionClosableOverlayType } from './SessionClosableOverlay';
-import { SessionIconType } from './icon';
import { ContactType } from './SessionMemberListItem';
import { SessionButton, SessionButtonColor, SessionButtonType } from './SessionButton';
import { PubKey } from '../../session/types';
@@ -133,7 +132,7 @@ export class LeftPaneMessageSection extends React.Component {
return (
);
diff --git a/ts/components/session/LeftPaneSectionHeader.tsx b/ts/components/session/LeftPaneSectionHeader.tsx
index 11ca371093..72c8162695 100644
--- a/ts/components/session/LeftPaneSectionHeader.tsx
+++ b/ts/components/session/LeftPaneSectionHeader.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import classNames from 'classnames';
-import { SessionIcon, SessionIconSize, SessionIconType } from './icon';
-import styled, { useTheme } from 'styled-components';
+import { SessionIcon, SessionIconType } from './icon';
+import styled from 'styled-components';
import { SessionButton, SessionButtonType } from './SessionButton';
import { useDispatch, useSelector } from 'react-redux';
import { disableRecoveryPhrasePrompt } from '../../state/ducks/userConfig';
@@ -47,7 +47,6 @@ type Props = {
export const LeftPaneSectionHeader = (props: Props) => {
const { label, buttonIcon, buttonClicked } = props;
- const theme = useTheme();
const showRecoveryPhrasePrompt = useSelector(getShowRecoveryPhrasePrompt);
return (
@@ -56,12 +55,7 @@ export const LeftPaneSectionHeader = (props: Props) => {
{label && }
{buttonIcon && (
-
+
)}
@@ -102,8 +96,6 @@ export const LeftPaneBanner = () => {
);
};
- const theme = useTheme();
-
return (
@@ -112,11 +104,7 @@ export const LeftPaneBanner = () => {
{window.i18n('recoveryPhraseSecureTitle')} 90%
-
+
@@ -127,11 +115,11 @@ const StyledProgressBarContainer = styled.div`
width: 100%;
height: 5px;
flex-direction: row;
- background: ${p => p.theme.colors.sessionBorderColor};
+ background: var(--color-session-border);
`;
const StyledProgressBarInner = styled.div`
- background: ${p => p.theme.colors.accent};
+ background: var(--color-accent);
width: 90%;
transition: width 0.5s ease-in;
height: 100%;
@@ -139,21 +127,20 @@ const StyledProgressBarInner = styled.div`
export const StyledBannerTitle = styled.div`
line-height: 1.3;
- font-size: ${p => p.theme.common.fonts.md};
+ font-size: var(--font-size-md);
font-weight: bold;
- margin: ${p => p.theme.common.margins.sm} ${p => p.theme.common.margins.sm} 0
- ${p => p.theme.common.margins.sm};
+ margin: var(--margins-sm) var(--margins-sm) 0 var(--margins-sm);
span {
- color: ${p => p.theme.colors.textAccent};
+ color: var(--color-text-accent);
}
`;
export const StyledLeftPaneBanner = styled.div`
- background: ${p => p.theme.colors.recoveryPhraseBannerBackground};
+ background: var(--color-recovery-phrase-banner-background);
display: flex;
flex-direction: column;
- border-bottom: ${p => p.theme.colors.sessionBorder};
+ border-bottom: var(--session-border);
`;
const StyledBannerInner = styled.div`
@@ -162,10 +149,10 @@ const StyledBannerInner = styled.div`
}
.left-pane-banner___phrase {
- margin-top: ${props => props.theme.common.margins.md};
+ margin-top: var(--margins-md);
}
.session-button {
- margin-top: ${props => props.theme.common.margins.sm};
+ margin-top: var(--margins-sm);
}
`;
diff --git a/ts/components/session/LeftPaneSettingSection.tsx b/ts/components/session/LeftPaneSettingSection.tsx
index 7c8b79e6f7..42c1d8a08e 100644
--- a/ts/components/session/LeftPaneSettingSection.tsx
+++ b/ts/components/session/LeftPaneSettingSection.tsx
@@ -1,13 +1,12 @@
import React from 'react';
import classNames from 'classnames';
import { SessionButton, SessionButtonColor, SessionButtonType } from './SessionButton';
-import { SessionIcon, SessionIconSize, SessionIconType } from './icon';
+import { SessionIcon } from './icon';
import { SessionSettingCategory } from './settings/SessionSettings';
import { LeftPaneSectionHeader } from './LeftPaneSectionHeader';
import { useDispatch, useSelector } from 'react-redux';
import { showSettingsSection } from '../../state/ducks/section';
import { getFocusedSettingsSection } from '../../state/selectors/section';
-import { getTheme } from '../../state/selectors/theme';
import { recoveryPhraseModal, updateDeleteAccountModal } from '../../state/ducks/modalDialog';
const getCategories = () => {
@@ -39,7 +38,6 @@ const LeftPaneSettingsCategoryRow = (props: { item: any }) => {
const { item } = props;
const dispatch = useDispatch();
- const theme = useSelector(getTheme);
const focusedSettingsSection = useSelector(getFocusedSettingsSection);
return (
@@ -60,12 +58,7 @@ const LeftPaneSettingsCategoryRow = (props: { item: any }) => {
{item.id === focusedSettingsSection && (
-
+
)}
diff --git a/ts/components/session/SessionButton.tsx b/ts/components/session/SessionButton.tsx
index 772fd68b54..313aaa5f08 100644
--- a/ts/components/session/SessionButton.tsx
+++ b/ts/components/session/SessionButton.tsx
@@ -1,6 +1,5 @@
import React, { ReactNode } from 'react';
import classNames from 'classnames';
-import { DefaultTheme } from 'styled-components';
export enum SessionButtonType {
Brand = 'brand',
@@ -16,10 +15,8 @@ export enum SessionButtonColor {
Green = 'green',
White = 'white',
Primary = 'primary',
- Secondary = 'secondary',
Success = 'success',
Danger = 'danger',
- DangerAlt = 'danger-alt',
Warning = 'warning',
None = '',
}
@@ -31,7 +28,6 @@ type Props = {
buttonColor: SessionButtonColor;
onClick: any;
children?: ReactNode;
- theme: DefaultTheme;
};
export const SessionButton = (props: Props) => {
diff --git a/ts/components/session/SessionClosableOverlay.tsx b/ts/components/session/SessionClosableOverlay.tsx
index 9d103a219d..cae8021dd1 100644
--- a/ts/components/session/SessionClosableOverlay.tsx
+++ b/ts/components/session/SessionClosableOverlay.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import { SessionIconButton, SessionIconSize, SessionIconType } from './icon';
+import { SessionIconButton } from './icon';
import { SessionIdEditable } from './SessionIdEditable';
import { ContactType, SessionMemberListItem } from './SessionMemberListItem';
import { ReduxConversationType } from '../../state/ducks/conversations';
@@ -146,11 +146,7 @@ export class SessionClosableOverlay extends React.Component