Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-c-woodard committed Mar 1, 2024
1 parent 40879c7 commit 4991f38
Show file tree
Hide file tree
Showing 3 changed files with 608 additions and 604 deletions.
6 changes: 3 additions & 3 deletions src/blocks/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default function Edit(props) {

useEffect(() => {
const postOrFseId = getPostOrFseId(props, parentData);
let uniqueId = getUniqueId(uniqueID, clientId, isUniqueID, isUniqueBlock, postOrFseId);
const uniqueId = getUniqueId(uniqueID, clientId, isUniqueID, isUniqueBlock, postOrFseId);
if (uniqueId !== uniqueID) {
attributes.uniqueID = uniqueId;
setAttributes({ uniqueID: uniqueId });
Expand Down Expand Up @@ -772,8 +772,8 @@ export default function Edit(props) {

<KadenceBlockDefaults
attributes={attributes}
defaultAttributes={metadata['attributes']}
blockSlug={metadata['name']}
defaultAttributes={metadata.attributes}
blockSlug={metadata.name}
/>
</>
)}
Expand Down
13 changes: 6 additions & 7 deletions src/blocks/navigation/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export function Edit(props) {
const { id, uniqueID } = attributes;

const blockClasses = classnames({
'wp-block-kadence-advanced-form': true,
[`wp-block-kadence-advanced-form${uniqueID}`]: uniqueID,
[`wp-block-kadence-navigation${uniqueID}`]: uniqueID,
});
const blockProps = useBlockProps({
className: blockClasses,
Expand Down Expand Up @@ -136,12 +135,12 @@ export function Edit(props) {
</Placeholder>
<InspectorControls>
<KadencePanelBody
panelName={'kb-advanced-form-selected-switch'}
title={__('Selected Form', 'kadence-blocks')}
panelName={'kb-navigation-selected-switch'}
title={__('Selected Navigation', 'kadence-blocks')}
>
<SelectForm
postType="kadence_navigation"
label={__('Selected Form', 'kadence-blocks')}
label={__('Selected Navigation', 'kadence-blocks')}
hideLabelFromVision={true}
onChange={(nextId) => {
setAttributes({ id: parseInt(nextId) });
Expand All @@ -165,11 +164,11 @@ export function Edit(props) {
<InspectorControls>
<KadencePanelBody
panelName={'kb-advanced-form-selected-switch'}
title={__('Selected Form', 'kadence-blocks')}
title={__('Selected Navigation', 'kadence-blocks')}
>
<SelectForm
postType="kadence_navigation"
label={__('Selected Form', 'kadence-blocks')}
label={__('Selected Navigation', 'kadence-blocks')}
hideLabelFromVision={true}
onChange={(nextId) => {
setAttributes({ id: parseInt(nextId) });
Expand Down
Loading

0 comments on commit 4991f38

Please sign in to comment.