Skip to content

Commit

Permalink
chore(date-picker): fix styles (#82058)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSun48 authored Dec 12, 2024
1 parent 9b1ef04 commit 02238a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions static/app/components/calendar/calendarStylesWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ const CalendarStylesWrapper = styled('div')`
border-left-color: ${p => p.theme.textColor};
margin: 0;
}
.rdrDayPassive {
visibility: hidden;
}
`;

export default CalendarStylesWrapper;
9 changes: 1 addition & 8 deletions static/app/components/calendar/dateRangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {useCallback, useMemo} from 'react';
import type {DateRangeProps, Range, RangeKeyDict} from 'react-date-range';
import {DateRange} from 'react-date-range';
import styled from '@emotion/styled';

import CalendarStylesWrapper from './calendarStylesWrapper';

Expand Down Expand Up @@ -43,15 +42,9 @@ function DateRangePicker({

return (
<CalendarStylesWrapper>
<StyledDateRangePicker {...props} onChange={onChange} ranges={ranges} />
<DateRange {...props} onChange={onChange} ranges={ranges} />
</CalendarStylesWrapper>
);
}

const StyledDateRangePicker = styled(DateRange)`
.rdrDayPassive {
visibility: hidden;
}
`;

export default DateRangePicker;

0 comments on commit 02238a6

Please sign in to comment.