diff --git a/components/AppShelf/AppShelf.tsx b/components/AppShelf/AppShelf.tsx index 011e9d7f1..e78404a90 100644 --- a/components/AppShelf/AppShelf.tsx +++ b/components/AppShelf/AppShelf.tsx @@ -45,7 +45,7 @@ const AppShelf = (props: any) => { } return ( - + {config.services.map((service, i) => ( ))} diff --git a/components/calendar/CalendarComponent.tsx b/components/calendar/CalendarComponent.tsx index 0efa18064..e6fe567d9 100644 --- a/components/calendar/CalendarComponent.tsx +++ b/components/calendar/CalendarComponent.tsx @@ -1,5 +1,5 @@ /* eslint-disable react/no-children-prop */ -import { Indicator, Popover, Box, Center, ScrollArea, Divider } from '@mantine/core'; +import { Indicator, Popover, Box, ScrollArea, Divider } from '@mantine/core'; import { useEffect, useState } from 'react'; import { Calendar } from '@mantine/dates'; import { RadarrMediaDisplay, SonarrMediaDisplay } from './MediaDisplay'; @@ -83,41 +83,25 @@ function DayComponent(props: any) { onClick={() => { setOpened(true); }} - style={{ height: '100%', width: '100%' }} > -
- {/* TODO: #6 Make the color of the indicator dependant on the type of medias avilable */} - <> - {radarrFiltered.length > 0 && ( - + {radarrFiltered.length > 0 && } + {sonarrFiltered.length > 0 && } + setOpened(false)} + opened={opened} + // TODO: Fix this !! WTF ? + target={`‏ ${day}`} + > + + {sonarrFiltered.length > 0 && } + {radarrFiltered.length > 0 && sonarrFiltered.length > 0 && ( + )} - {sonarrFiltered.length > 0 && ( - - )} - setOpened(false)} - opened={opened} - // TODO: Fix this !! WTF ? - target={`‏ ${day}`} - > - - {sonarrFiltered.length > 0 && } - {radarrFiltered.length > 0 && sonarrFiltered.length > 0 && ( - - )} - {radarrFiltered.length > 0 && } - - - -
+ {radarrFiltered.length > 0 && } + + ); } diff --git a/pages/_document.tsx b/pages/_document.tsx index 4027a8967..c32cc432b 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,8 +1,22 @@ -import Document from 'next/document'; -import { createGetInitialProps } from '@mantine/next'; +import Document, { DocumentContext } from 'next/document'; +import { ServerStyles, createStylesServer } from '@mantine/next'; -const getInitialProps = createGetInitialProps(); +const stylesServer = createStylesServer(); export default class _Document extends Document { - static getInitialProps = getInitialProps; + static async getInitialProps(ctx: DocumentContext) { + const initialProps = await Document.getInitialProps(ctx); + + // Add your app specific logic here + + return { + ...initialProps, + styles: ( + <> + {initialProps.styles} + + + ), + }; + } }