From 629301a6234544d5d7c5220943cecec42958fc61 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 25 Mar 2026 16:02:30 +0100 Subject: [PATCH] REFACTOR Simplify save function to return empty fragment --- .../carhop-blocks/src/explore-tags/save.js | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/plugins/carhop-blocks/src/explore-tags/save.js b/plugins/carhop-blocks/src/explore-tags/save.js index d7cdd20..22527ea 100644 --- a/plugins/carhop-blocks/src/explore-tags/save.js +++ b/plugins/carhop-blocks/src/explore-tags/save.js @@ -1,24 +1,5 @@ -/** - * React hook that is used to mark the block wrapper element. - * It provides all the necessary props like the class name. - * - * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops - */ -import { useBlockProps } from '@wordpress/block-editor'; +import { useBlockProps } from "@wordpress/block-editor"; -/** - * The save function defines the way in which the different attributes should - * be combined into the final markup, which is then serialized by the block - * editor into `post_content`. - * - * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save - * - * @return {Element} Element to render. - */ export default function save() { - return ( -

- { 'Explore Tags – hello from the saved content!' } -

- ); + return <>; }