From 7c20ba9824adae76e7467295c6a51aef458e4612 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Sun, 20 Apr 2025 03:28:24 +0200 Subject: [PATCH] style: Remove unnecessary semicolons in CSS properties --- app/components/Highlight.tsx | 7 ++++--- app/layouts/LayoutDefault.tsx | 3 +-- app/layouts/prism.css | 33 ++++++++++++--------------------- 3 files changed, 17 insertions(+), 26 deletions(-) diff --git a/app/components/Highlight.tsx b/app/components/Highlight.tsx index 58d165d..48aa1ec 100644 --- a/app/components/Highlight.tsx +++ b/app/components/Highlight.tsx @@ -1,7 +1,8 @@ -import type { JSX, ComponentProps, ParentComponent } from "solid-js"; +import type { ComponentProps, ParentComponent } from "solid-js"; import { createEffect, createMemo, mergeProps, on, splitProps } from "solid-js"; import * as Prismjs from "prismjs"; +import clsx from "clsx"; /** * @see https://prismjs.com/#supported-languages @@ -345,9 +346,9 @@ export const Highlight: ParentComponent = (_props) => { ); return ( -
+		
 			
diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx
index b364654..16bbc9c 100755
--- a/app/layouts/LayoutDefault.tsx
+++ b/app/layouts/LayoutDefault.tsx
@@ -129,14 +129,13 @@ type DefaultLayoutProps = {
 
 export default function DefaultLayout(props: DefaultLayoutProps) {
 	const { urlPathname } = usePageContext();
-	const isHomePage = urlPathname === "/";
 
 	return (
 		<>
 			
- {isHomePage && } + {urlPathname === "/" && }