From 36f8719531dc0bc8784e0a8339e93588d3b65564 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 19 Feb 2022 23:18:49 +0100 Subject: [PATCH] prettier all the things --- components/book/dateSelect.tsx | 54 +++--- components/book/index.tsx | 5 +- components/denied.tsx | 5 +- components/input.tsx | 14 +- components/inputWrapper.tsx | 5 +- components/mdComponents.tsx | 52 +++--- components/navigation.tsx | 3 +- components/user.tsx | 5 +- context/book.tsx | 5 +- db/booking.ts | 66 +++---- db/index.ts | 6 +- helpers/ical.ts | 48 ++--- lib/getServerSideProps.ts | 29 ++- lib/googlecalendar.ts | 47 +++-- pages/_app.tsx | 11 +- pages/admin/bookings/[uuid]/bill.tsx | 248 +++++++++++++------------- pages/admin/bookings/[uuid]/index.tsx | 78 ++++---- pages/admin/index.tsx | 14 +- pages/api/auth/[...nextauth].ts | 26 ++- pages/api/bookings/[uuid]/bill.ts | 1 - pages/bookings/[uuid]/index.tsx | 44 ++--- pages/bookings/[uuid]/stored.tsx | 65 +++---- pages/impressum.tsx | 2 +- pages/index.tsx | 1 - pages/privacy.tsx | 2 +- pages/terms.tsx | 4 +- renovate.json | 5 +- tsconfig.json | 16 +- 28 files changed, 433 insertions(+), 428 deletions(-) diff --git a/components/book/dateSelect.tsx b/components/book/dateSelect.tsx index c8a968d..e31311b 100644 --- a/components/book/dateSelect.tsx +++ b/components/book/dateSelect.tsx @@ -19,34 +19,34 @@ export default function DateSelect() { onChange={onChange} className="my-6 max-w-lg" /> - -
-
- -
-
- -
+ +
+
+
+
+ +
+
) } diff --git a/components/book/index.tsx b/components/book/index.tsx index b6466ea..9123be5 100644 --- a/components/book/index.tsx +++ b/components/book/index.tsx @@ -22,7 +22,10 @@ function BookForm() { {dataStoredLoaded && (

Buchungsdaten wurden aus Deinem Browser geladen und vorausgefüllt.{' '} - + Daten wieder vergessen

diff --git a/components/denied.tsx b/components/denied.tsx index d6aa089..66472dc 100644 --- a/components/denied.tsx +++ b/components/denied.tsx @@ -9,7 +9,10 @@ export default function Denied() { onClick={(e) => { e.preventDefault() signIn() - }}>Melde dich an um diese Seite zu sehen. + }} + > + Melde dich an um diese Seite zu sehen. +

) diff --git a/components/input.tsx b/components/input.tsx index e926298..b51e50b 100644 --- a/components/input.tsx +++ b/components/input.tsx @@ -7,10 +7,18 @@ type InputProps = React.InputHTMLAttributes & { } export default function Input(props: InputProps) { - const { label, name, required, type = 'text', className = "", ...rest } = props + const { + label, + name, + required, + type = 'text', + className = '', + ...rest + } = props - const defaultClasses = "appearance-none bg-gray-50 text-gray-500 border rounded py-2 px-3 mb-3 leading-tight disabled:bg-gray-200 disabled:cursor-not-allowed focus: outline-none focus:bg-white w-full" - const classes = `${defaultClasses} ${className}`; + const defaultClasses = + 'appearance-none bg-gray-50 text-gray-500 border rounded py-2 px-3 mb-3 leading-tight disabled:bg-gray-200 disabled:cursor-not-allowed focus: outline-none focus:bg-white w-full' + const classes = `${defaultClasses} ${className}` return ( diff --git a/components/inputWrapper.tsx b/components/inputWrapper.tsx index 2061df5..2344455 100644 --- a/components/inputWrapper.tsx +++ b/components/inputWrapper.tsx @@ -13,7 +13,10 @@ export default function Input(props: { <>
-