Skip to content

Commit 66b2568

Browse files
Preportdlhck
andauthored
fix(dashboard): Show customFields on address forms (#3900)
Co-authored-by: David Höck <[email protected]>
1 parent 0062009 commit 66b2568

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/dashboard/src/app/routes/_authenticated/_customers/components/customer-address-form.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { CustomFieldsForm } from '@/vdb/components/shared/custom-fields-form.js';
12
import { Button } from '@/vdb/components/ui/button.js';
23
import { Checkbox } from '@/vdb/components/ui/checkbox.js';
34
import {
@@ -284,6 +285,8 @@ export function CustomerAddressForm({ address, onSubmit, onCancel }: Readonly<Cu
284285
/>
285286
</div>
286287

288+
{/* Custom Fields */}
289+
<CustomFieldsForm entityType="Address" control={form.control} />
287290
{/* Default Address Checkboxes */}
288291
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 pt-2">
289292
<FormField

packages/dashboard/src/lib/components/shared/customer-address-form.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
} from '../ui/form.js';
1919
import { Input } from '../ui/input.js';
2020
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select.js';
21+
import { CustomFieldsForm } from './custom-fields-form.js';
2122

2223
// Query document to fetch available countries
2324
const getAvailableCountriesDocument = graphql(`
@@ -275,6 +276,8 @@ export function CustomerAddressForm<T>({
275276
/>
276277
</div>
277278

279+
{/* Custom Fields */}
280+
<CustomFieldsForm entityType="Address" control={form.control} />
278281
{/* Default Address Checkboxes */}
279282
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 pt-2">
280283
<FormField

0 commit comments

Comments
 (0)