fix build errors

This commit is contained in:
Fran Jurmanović
2025-09-18 22:12:40 +02:00
parent fe4d299eae
commit 1ca98233f8
3 changed files with 7 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ interface CreateServerModalProps {
onClose: () => void; onClose: () => void;
} }
const initialState: ServerActionResult = { success: false, message: '' }; const initialState: ServerActionResult = { success: false, message: '', data: undefined };
export function CreateServerModal({ isOpen, onClose }: CreateServerModalProps) { export function CreateServerModal({ isOpen, onClose }: CreateServerModalProps) {
const [serverName, setServerName] = useState(''); const [serverName, setServerName] = useState('');

View File

@@ -4,10 +4,14 @@ import { revalidatePath } from 'next/cache';
import { requireAuth } from '@/lib/auth/server'; import { requireAuth } from '@/lib/auth/server';
import { createServer, deleteServer } from '@/lib/api/server/servers'; import { createServer, deleteServer } from '@/lib/api/server/servers';
export type ServerActionData = {
id: string;
};
export type ServerActionResult = { export type ServerActionResult = {
success: boolean; success: boolean;
message: string; message: string;
data?: any; data?: ServerActionData;
}; };
export async function createServerAction( export async function createServerAction(

View File

@@ -1,14 +1,5 @@
import { fetchServerAPI } from './base'; import { fetchServerAPI } from './base';
import type { import type { Configurations, ConfigFile, Config } from '@/lib/types/config';
Configurations,
Configuration,
AssistRules,
EventConfig,
EventRules,
ServerSettings,
ConfigFile,
Config
} from '@/lib/types/config';
const serverRoute = '/server'; const serverRoute = '/server';