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)}
); }