set template shift struc

This commit is contained in:
2025-10-10 23:42:11 +02:00
parent 168f2cfae3
commit 6247461754
21 changed files with 1627 additions and 369 deletions

View File

@@ -3,7 +3,7 @@ import React, { useState, useEffect } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { shiftTemplateService } from '../../services/shiftTemplateService';
import { shiftPlanService } from '../../services/shiftPlanService';
import { ShiftTemplate } from '../../types/shiftTemplate';
import { TemplateShift } from '../../types/shiftTemplate';
import styles from './ShiftPlanCreate.module.css';
const ShiftPlanCreate: React.FC = () => {
@@ -14,7 +14,7 @@ const ShiftPlanCreate: React.FC = () => {
const [startDate, setStartDate] = useState('');
const [endDate, setEndDate] = useState('');
const [selectedTemplate, setSelectedTemplate] = useState('');
const [templates, setTemplates] = useState<ShiftTemplate[]>([]);
const [templates, setTemplates] = useState<TemplateShift[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);