Web:Common: Fix calendar.

This commit is contained in:
Vlada Gazizova 2022-08-17 11:14:30 +03:00
parent 4fb553f589
commit eead02f968

View File

@ -1,13 +1,15 @@
import styled, { css } from "styled-components";
import { CalendarStyle } from "@docspace/components/calendar/styled-calendar";
const getDefaultStyles = ({ currentColorScheme, color }) => css`
.calendar-month_selected-day {
background-color: ${color ? color : currentColorScheme.accentColor};
&:hover {
const getDefaultStyles = ({ currentColorScheme, color }) =>
currentColorScheme &&
css`
.calendar-month_selected-day {
background-color: ${color ? color : currentColorScheme.accentColor};
&:hover {
background-color: ${color ? color : currentColorScheme.accentColor};
}
}
}
`;
`;
export default styled(CalendarStyle)(getDefaultStyles);