Refactor Dropdown Handlers and Update WordPress Integration

- Updated dropdown onChange handlers across multiple components to use direct value passing instead of event target value for improved clarity and consistency.
- Changed `url` to `site_url` in WordPress integration configuration for better semantic clarity.
- Enhanced Vite configuration to include `fast-deep-equal` for compatibility with `react-dnd`.
- Updated navigation paths in `SiteContentEditor` and `SiteList` for consistency with new routing structure.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 08:38:59 +00:00
parent b05421325c
commit 8508af37c7
12 changed files with 69 additions and 56 deletions

View File

@@ -142,8 +142,8 @@ export default function PublishingRules({ rules, onChange }: PublishingRulesProp
<SelectDropdown
options={CONTENT_TYPES}
value={rule.content_type}
onChange={(e) =>
handleUpdateRule(rule.id, 'content_type', e.target.value)
onChange={(value) =>
handleUpdateRule(rule.id, 'content_type', value)
}
/>
</div>
@@ -153,8 +153,8 @@ export default function PublishingRules({ rules, onChange }: PublishingRulesProp
<SelectDropdown
options={TRIGGERS}
value={rule.trigger}
onChange={(e) =>
handleUpdateRule(rule.id, 'trigger', e.target.value)
onChange={(value) =>
handleUpdateRule(rule.id, 'trigger', value)
}
/>
</div>