Fix icon color in light mode

This commit is contained in:
Ben Grant 2021-06-03 17:28:16 +10:00
parent db0c64a60b
commit 018b045a1e
3 changed files with 8 additions and 2 deletions

View file

@ -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();

View file

@ -125,4 +125,8 @@ export const Icon = styled.img`
height: 24px;
width: 24px;
margin-right: 12px;
${props => props.theme.mode === 'light' && `
filter: invert(1);
`}
`;

View file

@ -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();