From 0c58882721192cc3721e9e1fbd1b7182fc87ac6d Mon Sep 17 00:00:00 2001 From: JohannaPeanut <76495099+JohannaPeanut@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:40:35 +0200 Subject: [PATCH 1/3] prettier --- src/components/AwardPage/Profile/Profile.tsx | 2 +- src/components/AwardPage/QuoteBox/QuoteBox.tsx | 2 +- .../CommunityEntries/CardCommunityEntry.tsx | 2 +- src/components/ExamplePage/Pagination.tsx | 2 +- src/components/Layout/Breadcrumbs.tsx | 4 ++-- src/components/Layout/Footer/Footer.tsx | 4 ++-- src/components/Layout/Hero.tsx | 2 +- src/components/Layout/Layout.tsx | 2 +- .../Layout/Navigation/NavigationDesktop.tsx | 4 ++-- .../Layout/Navigation/NavigationMobile.tsx | 8 ++++---- src/components/Layout/Navigation/SideNavigation.tsx | 8 ++++---- .../MeasurePage/CardWrapperMeasurePage.tsx | 2 +- src/components/SearchBar/SearchBar.tsx | 8 ++++---- .../StartPage/CardWrapperTopicsStartPage.tsx | 2 +- src/components/Text/Headings.tsx | 10 +++++----- src/components/TopicPage/CardMeasure.tsx | 2 +- .../WissensspeicherStartPage/CardTopic.tsx | 2 +- src/components/core/Prose.tsx | 2 +- src/components/core/articleProseClasses.tsx | 4 ++-- src/components/core/links/Link.tsx | 4 ++-- src/components/core/links/YouTubePreview.tsx | 2 +- src/components/core/links/styles.ts | 12 ++++++------ src/components/utils/sortByPosition.ts | 2 +- src/pages/index.tsx | 2 +- src/pages/weitere-angebote/index.tsx | 2 +- .../{strapiExample.slug}.tsx | 4 ++-- 26 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/components/AwardPage/Profile/Profile.tsx b/src/components/AwardPage/Profile/Profile.tsx index 824c337..d60466d 100644 --- a/src/components/AwardPage/Profile/Profile.tsx +++ b/src/components/AwardPage/Profile/Profile.tsx @@ -22,7 +22,7 @@ export const Profile: React.FC = ({ {`profilfoto = ({ children, mirror = false }) => {

{children}

diff --git a/src/components/CommunityEntries/CardCommunityEntry.tsx b/src/components/CommunityEntries/CardCommunityEntry.tsx index dbe7fdf..729ae88 100644 --- a/src/components/CommunityEntries/CardCommunityEntry.tsx +++ b/src/components/CommunityEntries/CardCommunityEntry.tsx @@ -38,7 +38,7 @@ export const CardCommunityEntry: React.FC = ({ button="card" className={clsx( 'flex h-full flex-col items-stretch gap-1 rounded-b-3xl bg-white sm:flex-row sm:gap-6', - className, + className )} href={link} > diff --git a/src/components/ExamplePage/Pagination.tsx b/src/components/ExamplePage/Pagination.tsx index 890a1b0..efc6ad2 100644 --- a/src/components/ExamplePage/Pagination.tsx +++ b/src/components/ExamplePage/Pagination.tsx @@ -21,7 +21,7 @@ export const Pagination: React.FC = ({

Praxisbeispiele blättern

diff --git a/src/components/Layout/Breadcrumbs.tsx b/src/components/Layout/Breadcrumbs.tsx index 808562e..6ebf333 100644 --- a/src/components/Layout/Breadcrumbs.tsx +++ b/src/components/Layout/Breadcrumbs.tsx @@ -44,12 +44,12 @@ export const Breadcrumbs: React.FC = ({ names = [], prefix = './' }) => { className={clsx( 'h-4 w-[4px] ', // the current breadcrumb has a lighter color - isLastItem(i) ? 'bg-white/40' : wikiColorsArray[i], + isLastItem(i) ? 'bg-white/40' : wikiColorsArray[i] )} /> diff --git a/src/components/Layout/Footer/Footer.tsx b/src/components/Layout/Footer/Footer.tsx index 239b7a0..2f5c7ef 100644 --- a/src/components/Layout/Footer/Footer.tsx +++ b/src/components/Layout/Footer/Footer.tsx @@ -17,7 +17,7 @@ export const Footer: React.FC = () => { >
    {Object.keys(menuItems).map((key) => ( @@ -54,7 +54,7 @@ export const Footer: React.FC = () => { {childKey} - ), + ) )}
) : ( diff --git a/src/components/Layout/Hero.tsx b/src/components/Layout/Hero.tsx index 0b80e43..99fa07f 100644 --- a/src/components/Layout/Hero.tsx +++ b/src/components/Layout/Hero.tsx @@ -24,7 +24,7 @@ export const Hero: React.FC = ({ className={clsx( 'relative mb-4 flex flex-col justify-center gap-4 rounded-b-3xl px-8 pb-8 pt-36 md:mb-6 md:px-12 md:pb-16', className, - bgColor, + bgColor )} > {breadcrumbs &&
{breadcrumbs}
} diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx index 4ecb614..92a9260 100644 --- a/src/components/Layout/Layout.tsx +++ b/src/components/Layout/Layout.tsx @@ -42,7 +42,7 @@ const Layout: React.FC< breadcrumbs.push( data.example.measure.topic.name, data.example.measure.name, - data.example.title, + data.example.title ); } } diff --git a/src/components/Layout/Navigation/NavigationDesktop.tsx b/src/components/Layout/Navigation/NavigationDesktop.tsx index 321b1e5..64eae4c 100644 --- a/src/components/Layout/Navigation/NavigationDesktop.tsx +++ b/src/components/Layout/Navigation/NavigationDesktop.tsx @@ -16,7 +16,7 @@ export const NavigationDesktop: React.FC = ({ path, className }) => {