fix:type errors
This commit is contained in:
parent
785885c383
commit
16d06c740d
@ -60,7 +60,7 @@ export interface RecordViewParams {
|
|||||||
// is the designer's layout and decides which fields are user-facing.
|
// is the designer's layout and decides which fields are user-facing.
|
||||||
|
|
||||||
export interface FormScreenFieldProps {
|
export interface FormScreenFieldProps {
|
||||||
options?: Array<{ label: string; value: string }>;
|
options?: Array<{ label: string; value: string; _raw?: Record<string, any> }>;
|
||||||
/** Dataset-backed select/multiselect: options come live from
|
/** Dataset-backed select/multiselect: options come live from
|
||||||
* /dataset-options (filter_options-aware), not the static `options` above.
|
* /dataset-options (filter_options-aware), not the static `options` above.
|
||||||
* `display_keys` are joined for the label; `value_key` is the stored value. */
|
* `display_keys` are joined for the label; `value_key` is the stored value. */
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import type { ZinoClient } from '../../api/client';
|
import type { ZinoClient } from '../../api/client';
|
||||||
import type { FormScreenResponse, FormScreenField } from '../../api/types';
|
import type { FormScreenResponse } from '../../api/types';
|
||||||
import { Button } from '../buttons/Button';
|
import { Button } from '../buttons/Button';
|
||||||
import { Spinner } from '../reusable/Spinner';
|
import { Spinner } from '../reusable/Spinner';
|
||||||
import {
|
import {
|
||||||
@ -213,7 +213,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
|
|||||||
required={f.mandatory}
|
required={f.mandatory}
|
||||||
value={(val as string | number) ?? ''}
|
value={(val as string | number) ?? ''}
|
||||||
client={client}
|
client={client}
|
||||||
config={f.properties?.wf_lookup_config}
|
config={f.properties?.lookup_config}
|
||||||
activityId={currentActivityId}
|
activityId={currentActivityId}
|
||||||
fieldId={f.id}
|
fieldId={f.id}
|
||||||
formData={values}
|
formData={values}
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export function ConsoleLayout() {
|
|||||||
if (!authed) return <Navigate to="/login" replace />;
|
if (!authed) return <Navigate to="/login" replace />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-app flex flex-col">
|
<div className="h-screen bg-app flex flex-col">
|
||||||
<header className="sticky top-0 z-10 shrink-0 flex items-center justify-between gap-3 px-6 h-[60px] bg-navy-grad border-b border-border-navy">
|
<header className="sticky top-0 z-10 shrink-0 flex items-center justify-between gap-3 px-6 h-[60px] bg-navy-grad border-b border-border-navy">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span className="text-md font-extrabold text-on-navy tracking-[-0.01em] leading-none">Krishna Sales</span>
|
<span className="text-md font-extrabold text-on-navy tracking-[-0.01em] leading-none">Krishna Sales</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user