diff --git a/apps/rowboat/app/lib/components/editable-field.tsx b/apps/rowboat/app/lib/components/editable-field.tsx index 66ec34d5..5a71545e 100644 --- a/apps/rowboat/app/lib/components/editable-field.tsx +++ b/apps/rowboat/app/lib/components/editable-field.tsx @@ -21,6 +21,8 @@ interface EditableFieldProps { light?: boolean; mentions?: boolean; mentionsAtValues?: Match[]; + showSaveButton?: boolean; + error?: string | null; } export function EditableField({ @@ -36,6 +38,8 @@ export function EditableField({ light = false, mentions = false, mentionsAtValues = [], + showSaveButton = multiline, + error, }: EditableFieldProps) { const [isEditing, setIsEditing] = useState(false); const [localValue, setLocalValue] = useState(value); @@ -95,9 +99,9 @@ export function EditableField({ return (
- {(label || isEditing && multiline) &&
+ {(label || isEditing && showSaveButton) &&
{label &&