🚨 Lint code and prettier

This commit is contained in:
ajnart
2022-05-23 10:24:54 +02:00
parent 72e08f484f
commit 6a905e1b49
3 changed files with 17 additions and 17 deletions

View File

@@ -18,10 +18,10 @@ import { useForm } from '@mantine/form';
import { motion } from 'framer-motion';
import { useState } from 'react';
import { Apps } from 'tabler-icons-react';
import { v4 as uuidv4 } from 'uuid';
import { useConfig } from '../../tools/state';
import { ServiceTypeList } from '../../tools/types';
import { AppShelfItemWrapper } from './AppShelfItemWrapper';
import { v4 as uuidv4 } from 'uuid';
export function AddItemShelfButton(props: any) {
const [opened, setOpened] = useState(false);

View File

@@ -33,9 +33,8 @@ export default function CalendarComponent(props: any) {
const nextMonth = new Date(new Date().setMonth(new Date().getMonth() + 2)).toISOString();
if (sonarrService && sonarrService.apiKey) {
const baseUrl = new URL(sonarrService.url).origin;
fetch(
`${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}`
).then((response) => {
fetch(`${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}`).then(
(response) => {
response.ok &&
response.json().then((data) => {
setSonarrMedias(data);
@@ -48,7 +47,8 @@ export default function CalendarComponent(props: any) {
message: `Loaded ${data.length} releases`,
});
});
});
}
);
}
if (radarrService && radarrService.apiKey) {
const baseUrl = new URL(radarrService.url).origin;

View File

@@ -16,5 +16,5 @@
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"],
"exclude": ["node_modules", "**/*.story.*"]
"exclude": ["node_modules"]
}