Fix icon color in light mode
This commit is contained in:
parent
db0c64a60b
commit
018b045a1e
|
|
@ -113,8 +113,8 @@ const GoogleCalendar = ({ timeZone, timeMin, timeMax, onImport }) => {
|
|||
<CalendarList>
|
||||
<Title>
|
||||
<Icon src={googleLogo} alt="" />
|
||||
{/* eslint-disable-next-line */}
|
||||
<strong>{t('event:you.google_cal.login')}</strong>
|
||||
{/* eslint-disable-next-line */}
|
||||
(<a href="#" onClick={e => {
|
||||
e.preventDefault();
|
||||
signOut();
|
||||
|
|
|
|||
|
|
@ -125,4 +125,8 @@ export const Icon = styled.img`
|
|||
height: 24px;
|
||||
width: 24px;
|
||||
margin-right: 12px;
|
||||
|
||||
${props => props.theme.mode === 'light' && `
|
||||
filter: invert(1);
|
||||
`}
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ const OutlookCalendar = ({ timeZone, timeMin, timeMax, onImport }) => {
|
|||
.finally(() => setFreeBusyLoading(false));
|
||||
};
|
||||
|
||||
// eslint-disable-next-line
|
||||
useEffect(() => checkLogin(), []);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -156,6 +157,7 @@ const OutlookCalendar = ({ timeZone, timeMin, timeMax, onImport }) => {
|
|||
signOut();
|
||||
});
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
}, [client]);
|
||||
|
||||
return (
|
||||
|
|
@ -178,8 +180,8 @@ const OutlookCalendar = ({ timeZone, timeMin, timeMax, onImport }) => {
|
|||
<CalendarList>
|
||||
<Title>
|
||||
<Icon src={outlookLogo} alt="" />
|
||||
{/* eslint-disable-next-line */}
|
||||
<strong>{t('event:you.outlook_cal')}</strong>
|
||||
{/* eslint-disable-next-line */}
|
||||
(<a href="#" onClick={e => {
|
||||
e.preventDefault();
|
||||
signOut();
|
||||
|
|
|
|||
Loading…
Reference in a new issue