Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 12, 2024
1 parent 7c29b1e commit bf6efbe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
20 changes: 12 additions & 8 deletions web/src/components/admin/connectors/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export function TextFormField({
min,
onChange,
width,
vertical,
}: {
value?: string;
name: string;
Expand All @@ -170,6 +171,7 @@ export function TextFormField({
min?: number;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
width?: string;
vertical?: boolean;
}) {
let heightString = defaultHeight || "";
if (isTextArea && !heightString) {
Expand Down Expand Up @@ -209,14 +211,16 @@ export function TextFormField({

return (
<div className={`w-full ${width}`}>
<div className="flex flex-col gap-x-2 items-start">
{!removeLabel && (
<Label className={sizeClass.label} small={small}>
{label}
</Label>
)}
{optional ? <span>(optional) </span> : ""}
{tooltip && <ToolTipDetails>{tooltip}</ToolTipDetails>}
<div className={`flex ${vertical ? "flex-col" : "flex-row"} items-start`}>
<div className="flex gap-x-2 items-center">
{!removeLabel && (
<Label className={sizeClass.label} small={small}>
{label}
</Label>
)}
{optional ? <span>(optional) </span> : ""}
{tooltip && <ToolTipDetails>{tooltip}</ToolTipDetails>}
</div>
{error ? (
<ManualErrorMessage>{error}</ManualErrorMessage>
) : (
Expand Down
1 change: 1 addition & 0 deletions web/src/components/modals/EditPropertyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const EditPropertyModal = ({
</h2>

<TextFormField
vertical
label={propertyDetails || ""}
name="propertyValue"
placeholder="Property value"
Expand Down

0 comments on commit bf6efbe

Please sign in to comment.