Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Dec 10, 2024
1 parent 1402ad5 commit 5f98a61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ $navigation-distance: 1rem;
border-radius: bk.$border-radius-circle;
}

:global(.react-datepicker__day:not(.react-datepicker__day--selected):hover) {
/* stylelint-disable-next-line */
:global(.react-datepicker__day:not(&--selected):hover) {
background: rgba(bk.$color-blueberry-500, 0.5); // TODO use proper variable
border-radius: 50%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default {

export const Standard: Story = {
render: (args) => {
const [startDate, setStartDate] = React.useState(new Date());
const [endDate, setEndDate] = React.useState(new Date());
const onChange = (dates: [Date, Date]) => {
const [startDate, setStartDate] = React.useState<Date | null>(new Date());
const [endDate, setEndDate] = React.useState<Date | null>(new Date());
const onChange = (dates: [Date | null, Date | null]) => {
const [start, end] = dates;
setStartDate(start);
setEndDate(end);
Expand All @@ -43,8 +43,8 @@ export const Standard: Story = {
{...args}
selected={startDate}
onChange={onChange}
startDate={startDate}
endDate={endDate}
startDate={startDate as Date}
endDate={endDate as Date}
inline={true}
/>
{/* with a fixed width to avoid content moving around while selecting */}
Expand Down

0 comments on commit 5f98a61

Please sign in to comment.