Skip to content

Commit

Permalink
mattermost-community#66 dark theme issue CircleCi error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guna-demansol committed Mar 14, 2022
1 parent eec7368 commit 080b4d8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions webapp/src/components/meeting_settings/meeting_settings.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import React from 'react';
import { Modal } from 'react-bootstrap';
import Select from 'react-select';

import {Modal} from 'react-bootstrap';

import Select from 'react-select';

export default class MeetingSettingsModal extends React.PureComponent {
static propTypes = {
Expand Down Expand Up @@ -31,24 +31,24 @@ export default class MeetingSettingsModal extends React.PureComponent {
color: 'var(--center-channel-color)',
};
},
option: (provided, { isFocused, isDisabled, isSelected }) => {
const bgColor = isFocused
? {
backgroundColor: 'var(--button-bg)',
color: 'var(--button-color)',
}
: {};
option: (provided, {isFocused, isDisabled, isSelected}) => {
const bgColor = isFocused ?
{
backgroundColor: 'var(--button-bg)',
color: 'var(--button-color)',
}:
{};

return {
...provided,
...bgColor,
':active': {
...provided[':active'],
backgroundColor: !isDisabled
? isSelected
? 'var(--button-bg)'
: 'var(--center-channel-bg)'
: undefined,
backgroundColor: isDisabled ?
undefined :
isSelected ?
'var(--button-bg)':
'var(--center-channel-bg)'
},
};
},
Expand Down Expand Up @@ -81,7 +81,7 @@ export default class MeetingSettingsModal extends React.PureComponent {
const transition = 'opacity 300ms';
const color = 'var(--center-channel-color)';
const background = 'var(--center-channel-bg)';
return { ...provided, opacity, transition, color, background };
return {...provided, opacity, transition, color, background};
},
}

Expand Down

0 comments on commit 080b4d8

Please sign in to comment.