diff --git a/ts/components/buttons/PanelButton.tsx b/ts/components/buttons/PanelButton.tsx index 43fce062e..d8fd31c81 100644 --- a/ts/components/buttons/PanelButton.tsx +++ b/ts/components/buttons/PanelButton.tsx @@ -63,7 +63,6 @@ export const PanelButtonGroup = (props: PanelButtonGroupProps) => { }; const StyledPanelButton = styled.button<{ - noBackgroundColor?: boolean; disabled: boolean; }>` cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')}; @@ -77,8 +76,6 @@ const StyledPanelButton = styled.button<{ min-height: 50px; width: 100%; transition: var(--default-duration); - background-color: ${props => - !props.noBackgroundColor ? 'var(--right-panel-item-background-hover-color) !important' : null}; color: ${props => (props.disabled ? 'var(--disabled-color)' : 'inherit')}; :not(:last-child) { @@ -90,7 +87,6 @@ export type PanelButtonProps = { // https://styled-components.com/docs/basics#styling-any-component className?: string; disabled?: boolean; - noBackgroundColor?: boolean; children: ReactNode; onClick: (...args: Array) => void; dataTestId?: string; @@ -98,20 +94,11 @@ export type PanelButtonProps = { }; export const PanelButton = (props: PanelButtonProps) => { - const { - className, - disabled = false, - noBackgroundColor, - children, - onClick, - dataTestId, - style, - } = props; + const { className, disabled = false, children, onClick, dataTestId, style } = props; return ( { } export const PanelIconButton = (props: PanelIconButton) => { - const { iconType, text, disabled = false, noBackgroundColor, onClick, dataTestId } = props; + const { iconType, text, disabled = false, onClick, dataTestId } = props; return ( - + {text} diff --git a/ts/components/buttons/PanelRadioButton.tsx b/ts/components/buttons/PanelRadioButton.tsx index 2389cd63f..4b7969a97 100644 --- a/ts/components/buttons/PanelRadioButton.tsx +++ b/ts/components/buttons/PanelRadioButton.tsx @@ -53,14 +53,12 @@ export const PanelRadioButton = (props: PanelRadioButtonProps) => { onSelect, onUnselect, disabled = false, - noBackgroundColor, dataTestId, } = props; return ( { return isSelected ? onUnselect?.('bye') : onSelect?.('hi'); }} diff --git a/ts/components/conversation/right-panel/overlay/OverlayRightPanelSettings.tsx b/ts/components/conversation/right-panel/overlay/OverlayRightPanelSettings.tsx index aa96407a5..feb0b8e91 100644 --- a/ts/components/conversation/right-panel/overlay/OverlayRightPanelSettings.tsx +++ b/ts/components/conversation/right-panel/overlay/OverlayRightPanelSettings.tsx @@ -5,8 +5,8 @@ import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import useInterval from 'react-use/lib/useInterval'; import styled from 'styled-components'; -import { SessionIconButton } from '../../../icon'; import { Data } from '../../../../data/data'; +import { SessionIconButton } from '../../../icon'; import { deleteAllMessagesByConvoIdWithConfirmation, @@ -357,7 +357,6 @@ export const OverlayRightPanelSettings = () => { { dispatch(setRightOverlayMode('disappearing-messages')); }} diff --git a/ts/components/conversation/right-panel/overlay/disappearing-messages/DisappearingModes.tsx b/ts/components/conversation/right-panel/overlay/disappearing-messages/DisappearingModes.tsx index a7191d24e..479a0b77f 100644 --- a/ts/components/conversation/right-panel/overlay/disappearing-messages/DisappearingModes.tsx +++ b/ts/components/conversation/right-panel/overlay/disappearing-messages/DisappearingModes.tsx @@ -66,7 +66,6 @@ export const DisappearingModes = (props: DisappearingModesProps) => { setSelected(mode as DisappearingMessageConversationModeType); }} disabled={options[mode as DisappearingMessageConversationModeType]} - noBackgroundColor={true} dataTestId={loadDataTestId(mode as DisappearingMessageConversationModeType)} /> ); diff --git a/ts/components/conversation/right-panel/overlay/disappearing-messages/TimeOptions.tsx b/ts/components/conversation/right-panel/overlay/disappearing-messages/TimeOptions.tsx index 3e4571abb..bbefb2670 100644 --- a/ts/components/conversation/right-panel/overlay/disappearing-messages/TimeOptions.tsx +++ b/ts/components/conversation/right-panel/overlay/disappearing-messages/TimeOptions.tsx @@ -33,7 +33,6 @@ export const TimeOptions = (props: TimerOptionsProps) => { onSelect={() => { setSelected(option.value); }} - noBackgroundColor={true} disabled={disabled} dataTestId={`disappear-time-${option.value}-option`} />