feat(19-01): wire LeadsViewToggle into leads page + build verified
- page.tsx: import LeadsViewToggle from @/components/admin/leads/LeadsViewToggle
- page.tsx: render <LeadsViewToggle leads={leads} options={options} />
- Removed direct LeadsSearch import from page (re-exported via LeadsSearch.tsx)
- Build: Next.js 16.2.6 Turbopack — Compiled successfully, TypeScript clean
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getLeadsWithTags, getLeadFieldOptions } from "@/lib/admin-queries";
|
||||
import { LeadsSearch } from "./LeadsSearch";
|
||||
import { LeadsViewToggle } from "@/components/admin/leads/LeadsViewToggle";
|
||||
import { CreateLeadModal } from "@/components/admin/leads/LeadForm";
|
||||
|
||||
export const revalidate = 0;
|
||||
@@ -17,7 +17,7 @@ export default async function LeadsPage() {
|
||||
<CreateLeadModal />
|
||||
</div>
|
||||
|
||||
<LeadsSearch leads={leads} options={options} />
|
||||
<LeadsViewToggle leads={leads} options={options} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user