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

@@ -327,7 +327,7 @@ export default function PostEditor() {
<SelectDropdown
options={CONTENT_TYPES}
value={content.content_type}
onChange={(e) => setContent({ ...content, content_type: e.target.value })}
onChange={(value) => setContent({ ...content, content_type: value })}
/>
</div>
@@ -336,7 +336,7 @@ export default function PostEditor() {
<SelectDropdown
options={STATUS_OPTIONS}
value={content.status}
onChange={(e) => setContent({ ...content, status: e.target.value })}
onChange={(value) => setContent({ ...content, status: value })}
/>
</div>
</div>