From f53c53ccc08a7a6484b9d2b0eb0c33bc11c6ebd9 Mon Sep 17 00:00:00 2001 From: damii Date: Thu, 28 Nov 2024 14:37:14 +1100 Subject: [PATCH] Fix linting issues --- src/components/widgets/datetime/datetime.jsx | 5 +---- src/components/widgets/widget/container.jsx | 12 +++++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/widgets/datetime/datetime.jsx b/src/components/widgets/datetime/datetime.jsx index 0a6ac87d6..a7aec5dab 100644 --- a/src/components/widgets/datetime/datetime.jsx +++ b/src/components/widgets/datetime/datetime.jsx @@ -33,10 +33,7 @@ export default function DateTime({ options }) { return ( -
(options.href ? window.location.assign(options.href) : [])} - className="flex flex-row items-center grow justify-end" - > +
{date} diff --git a/src/components/widgets/widget/container.jsx b/src/components/widgets/widget/container.jsx index c8241d8f4..086d808d1 100644 --- a/src/components/widgets/widget/container.jsx +++ b/src/components/widgets/widget/container.jsx @@ -56,13 +56,19 @@ export function getBottomBlock(children) { } export default function Container({ children = [], options, additionalClassNames = "" }) { - return ( -
(options.href ? window.location.assign(options.href) : [])} + return options.href ? ( + {getInnerBlock(children)} {getBottomBlock(children)} + + ) : ( +
+ {getInnerBlock(children)} + {getBottomBlock(children)}
); }