diff --git a/README.md b/README.md index 5e184c1..9839da5 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Neos: # Add `aria-label` and `title` to the button. Will be translated, but can also be a plain text label: "Foo.Bar:Backend.Main:editPreviewModes.teaserView" # Sets the position. Defaults to 'start' - position: 'start 1' + position: "start 1" ``` [packagist]: https://packagist.org/packages/carbon/previewmodebutton diff --git a/Resources/Private/Editor/makeButton.tsx b/Resources/Private/Editor/makeButton.tsx index 65b4dbe..446bdc1 100644 --- a/Resources/Private/Editor/makeButton.tsx +++ b/Resources/Private/Editor/makeButton.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react"; import { IconButton } from "@neos-project/react-ui-components"; export default function makeButton({ viewEditModeName, settings, i18nRegistry, nodeTypesRegistry }) { - return function Button({documentNode, editPreviewMode, setEditPreviewMode }) { + return function Button({ documentNode, editPreviewMode, setEditPreviewMode }) { const [shouldRender, setShouldRender] = useState(false); const icon = settings?.icon || "fas fa-pencil"; const label = settings?.label || null;