fix(ui): zmeneny text - text - v select boxu

This commit is contained in:
BOHA
2026-06-12 14:56:52 +02:00
parent 164ce54adf
commit 6f3f1c40e7
6 changed files with 7 additions and 7 deletions

View File

@@ -162,7 +162,7 @@ export default function BulkPlanModal({
value={form.project_id}
onChange={(val) => setForm({ ...form, project_id: val })}
options={[
{ value: "", label: "— bez projektu —" },
{ value: "", label: "Vyberte projekt" },
...projects.map((p) => ({ value: String(p.id), label: p.name })),
]}
/>

View File

@@ -392,7 +392,7 @@ function EditForm(props: Props) {
value={projectId === null ? "" : String(projectId)}
onChange={(val) => setProjectId(val ? Number(val) : null)}
options={[
{ value: "", label: "— bez projektu —" },
{ value: "", label: "Vyberte projekt" },
...projects.map((p) => ({
value: String(p.id),
label: p.name,

View File

@@ -157,7 +157,7 @@ function ProjectLogRow({
value={String(log.project_id)}
onChange={(val) => onUpdate(index, "project_id", val)}
options={[
{ value: "", label: "— Projekt" },
{ value: "", label: "Vyberte projekt" },
...projectList.map((p) => ({
value: String(p.id),
label: `${p.project_number} ${p.name}`,

View File

@@ -835,7 +835,7 @@ export default function Attendance() {
onChange={(val) => handleSwitchProject(val || null)}
disabled={switchingProject}
options={[
{ value: "", label: "— Bez projektu —" },
{ value: "", label: "Vyberte projekt" },
...projects.map((p) => ({
value: String(p.id),
label: `${p.project_number} ${p.name}`,

View File

@@ -554,7 +554,7 @@ export default function Projects() {
setCreateForm({ ...createForm, customer_id: value })
}
options={[
{ value: "", label: " bez zákazníka " },
{ value: "", label: "Vyberte zákaznika" },
...(customersQuery.data ?? []).map((c) => ({
value: String(c.id),
label: c.name,
@@ -571,7 +571,7 @@ export default function Projects() {
setCreateForm({ ...createForm, responsible_user_id: value })
}
options={[
{ value: "", label: " nepřiřazeno " },
{ value: "", label: "Vyberte zaměstnance" },
...(usersQuery.data ?? [])
.filter((u) => u.is_active)
.map((u) => ({

View File

@@ -625,7 +625,7 @@ export default function OrdersReceived({
setCreateForm({ ...createForm, customer_id: value })
}
options={[
{ value: "", label: "— bez zákazníka" },
{ value: "", label: "Vyberte zákazníka" },
...(customersQuery.data ?? []).map((c) => ({
value: String(c.id),
label: c.name,