Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Sep 17, 2024
1 parent 7f6e3cb commit dd68186
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/src/client/components/buildPage/FormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const FormField: React.FC<FormFieldProps> = ({
value={field.state.value}
placeholder={property.description || ''}
onChange={(e) => field.handleChange(e)}
isDisabled={immutableAfterCreation}
disabled={immutableAfterCreation}
/>
) : (
<TextInput
Expand All @@ -158,7 +158,7 @@ export const FormField: React.FC<FormFieldProps> = ({
onChange={(e) => field.handleChange(e)}
type={getInputType()}
placeholder={property.description || ''}
isDisabled={immutableAfterCreation}
disabled={immutableAfterCreation}
/>
)}
<FieldInfo field={field} />
Expand Down
6 changes: 3 additions & 3 deletions app/src/client/components/form/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ interface TextAreaProps {
value: string;
placeholder: string;
onChange: (value: string) => void;
isDisabled?: boolean;
disabled?: boolean;
}

export const TextArea: React.FC<TextAreaProps> = ({ id, value, placeholder, onChange, isDisabled }) => (
export const TextArea: React.FC<TextAreaProps> = ({ id, value, placeholder, onChange, disabled }) => (
<textarea
value={value}
placeholder={placeholder}
onChange={(e) => onChange(e.target.value)}
className='my-2 p-2 border rounded w-full h-40 disabled:bg-airt-disabled-input-bg disabled:text-airt-disabled-input-color'
id={id}
disabled={isDisabled}
disabled={disabled}
/>
);
6 changes: 3 additions & 3 deletions app/src/client/components/form/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ interface TextInputProps {
value: string;
placeholder: string;
onChange: (value: string) => void;
isDisabled?: boolean;
disabled?: boolean;
}

export const TextInput: React.FC<TextInputProps> = ({ id, type, value, placeholder, onChange, isDisabled }) => (
export const TextInput: React.FC<TextInputProps> = ({ id, type, value, placeholder, onChange, disabled }) => (
<input
type={type}
value={value}
placeholder={placeholder}
onChange={(e) => onChange(e.target.value)}
className='my-2 p-2 border rounded w-full disabled:bg-airt-disabled-input-bg disabled:text-airt-disabled-input-color'
id={id}
disabled={isDisabled}
disabled={disabled}
/>
);

0 comments on commit dd68186

Please sign in to comment.