🔧 Move Calendar module to new popover api

This commit is contained in:
ajnart
2022-08-02 05:18:07 +02:00
parent 762690493a
commit 498598424b

View File

@@ -260,19 +260,23 @@ function DayComponent(props: any) {
)} )}
<Popover <Popover
position="bottom" position="bottom"
withinPortal
radius="lg" radius="lg"
shadow="xl" shadow="xl"
transition="pop" transition="pop"
styles={{ styles={{
body: { dropdown: {
boxShadow: '0 0 14px 14px rgba(0, 0, 0, 0.1), 0 14px 11px rgba(0, 0, 0, 0.1)', boxShadow: '0 0 14px 14px rgba(0, 0, 0, 0.1), 0 14px 11px rgba(0, 0, 0, 0.1)',
}, },
}} }}
width="auto" width="auto"
onClose={() => setOpened(false)} onClose={() => setOpened(false)}
opened={opened} opened={opened}
target={day}
> >
<Popover.Target>
<div>{day}</div>
</Popover.Target>
<Popover.Dropdown>
<ScrollArea style={{ height: 400 }}> <ScrollArea style={{ height: 400 }}>
{sonarrFiltered.map((media: any, index: number) => ( {sonarrFiltered.map((media: any, index: number) => (
<React.Fragment key={index}> <React.Fragment key={index}>
@@ -308,6 +312,7 @@ function DayComponent(props: any) {
</React.Fragment> </React.Fragment>
))} ))}
</ScrollArea> </ScrollArea>
</Popover.Dropdown>
</Popover> </Popover>
</Box> </Box>
); );