From 9375f337d704faf1e808d51fcba3a95625a8e582 Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Mon, 19 Jul 2021 16:56:58 +0100 Subject: [PATCH 1/2] Fix Codacy issues --- components/DonateBanner.tsx | 4 ++-- components/ui/Text/Text.module.css | 3 --- next.config.js | 2 +- pages/auth/logout.tsx | 4 ++-- pages/availability/index.tsx | 6 +++--- pages/integrations/index.tsx | 10 +++++----- 6 files changed, 13 insertions(+), 16 deletions(-) diff --git a/components/DonateBanner.tsx b/components/DonateBanner.tsx index db3835c1..03a932c9 100644 --- a/components/DonateBanner.tsx +++ b/components/DonateBanner.tsx @@ -3,7 +3,7 @@ export default function DonateBanner() { if (location.hostname.endsWith(".calendso.com")) { return null; -} +} return ( <> @@ -21,7 +21,7 @@ return null; Support the ongoing development - You're using the free self-hosted version. Support the + You're using the free self-hosted version. Support the ongoing development by making a donation.

diff --git a/components/ui/Text/Text.module.css b/components/ui/Text/Text.module.css index 0afe4759..c850000e 100644 --- a/components/ui/Text/Text.module.css +++ b/components/ui/Text/Text.module.css @@ -2,9 +2,6 @@ @apply font-medium; } */ -.text { -} - .text--body { @apply text-lg leading-relaxed; } diff --git a/next.config.js b/next.config.js index ab513115..56369deb 100644 --- a/next.config.js +++ b/next.config.js @@ -20,7 +20,7 @@ const validJson = (jsonString) => { return o; } } - catch (e) {} + catch (e) { console.error(e); } return false; } diff --git a/pages/auth/logout.tsx b/pages/auth/logout.tsx index fe1aaf78..86f8b0da 100644 --- a/pages/auth/logout.tsx +++ b/pages/auth/logout.tsx @@ -18,7 +18,7 @@ export default function Logout() {

@@ -38,4 +38,4 @@ export default function Logout() {

); -} \ No newline at end of file +} diff --git a/pages/availability/index.tsx b/pages/availability/index.tsx index 0a8ad471..7a7824db 100644 --- a/pages/availability/index.tsx +++ b/pages/availability/index.tsx @@ -142,7 +142,7 @@ export default function Availability(props) { {props.types.map((eventType) => - + {eventType.title} {eventType.hidden && @@ -192,7 +192,7 @@ export default function Availability(props) {

- Something doesn't look right? + Something doesn't look right?

@@ -289,7 +289,7 @@ export default function Availability(props) { -

Hide the event type from your page, so it can only be booked through it's URL.

+

Hide the event type from your page, so it can only be booked through it's URL.

diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index 7ddb3c41..25ff03e8 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -94,7 +94,7 @@ export default function Home({ integrations }) {
{integrations.filter( (ig) => ig.credential ).length !== 0 ?