fix(ts): use import type for schema interfaces to fix build

This commit is contained in:
cawcenter
2025-12-14 20:42:53 -05:00
parent 9113a642b1
commit cc3fae39b2
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import { getDirectusClient, readItems } from '@/lib/directus/client';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { Pages as Page } from '@/lib/schemas';
import type { Pages as Page } from '@/lib/schemas';
export default function PageList() {
const [pages, setPages] = useState<Page[]>([]);

View File

@@ -4,7 +4,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@
// Assume Table isn't fully ready or use Grid for now to be safe.
import { Card } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { Posts as Post } from '@/lib/schemas';
import type { Posts as Post } from '@/lib/schemas';
export default function PostList() {
const [posts, setPosts] = useState<Post[]>([]);