Skip to content

Commit

Permalink
chore(data-warehouse): Show table name example when adding a source p…
Browse files Browse the repository at this point in the history
…refix (#26537)
  • Loading branch information
Gilbert09 authored Nov 29, 2024
1 parent 66592c7 commit a24952d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion frontend/src/scenes/data-warehouse/external/forms/SourceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,24 @@ export function SourceFormComponent({ sourceConfig, showPrefix = true, jobInputs
</Group>
{showPrefix && (
<LemonField name="prefix" label="Table Prefix (optional)">
<LemonInput className="ph-ignore-input" data-attr="prefix" placeholder="internal_" />
{({ value, onChange }) => (
<>
<LemonInput
className="ph-ignore-input"
data-attr="prefix"
placeholder="internal_"
value={value}
onChange={onChange}
/>
<p>
Example table name:{' '}
<strong>
{value}
{sourceConfig.name.toLowerCase()}_table_name
</strong>
</p>
</>
)}
</LemonField>
)}
</div>
Expand Down

0 comments on commit a24952d

Please sign in to comment.