Refactor Site Management Components and Update URL Parameters

- Changed `siteId` to `id` in `useParams` across multiple site-related components for consistency.
- Removed "Sites" from the sidebar settings menu.
- Updated navigation links in `SiteDashboard` to reflect new paths for integrations and deployments.
- Enhanced `SiteList` component with improved site management features, including modals for site creation and sector configuration.
- Added functionality to handle industry and sector selection for sites, with validation for maximum selections.
- Improved UI elements and alerts for better user experience in site management.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 06:02:13 +00:00
parent 155a73d928
commit b05421325c
13 changed files with 787 additions and 107 deletions

View File

@@ -35,7 +35,7 @@ interface Content {
}
export default function PostEditor() {
const { siteId, postId } = useParams<{ siteId: string; postId?: string }>();
const { id: siteId, postId } = useParams<{ id: string; postId?: string }>();
const navigate = useNavigate();
const toast = useToast();
const [loading, setLoading] = useState(true);