diff --git a/apps/ui-library/app/api/registry/tanstack-db/_generators/sheet.ts b/apps/ui-library/app/api/registry/tanstack-db/_generators/sheet.ts index 838521b1078..9f3dc160402 100644 --- a/apps/ui-library/app/api/registry/tanstack-db/_generators/sheet.ts +++ b/apps/ui-library/app/api/registry/tanstack-db/_generators/sheet.ts @@ -245,11 +245,6 @@ export function ${sheetComponentName}({ open, onOpenChange, mode, item }: ${shee ${stateDeclarations} const isCreate = mode === 'create' - const title = isCreate ? 'Create New ${singularPascal}' : 'Edit ${singularPascal}' - const description = isCreate - ? 'Add a new ${singularName.replace(/_/g, ' ')} to your database.' - : 'Update the ${singularName.replace(/_/g, ' ')} information.' - const submitLabel = isCreate ? 'Create ${singularPascal}' : 'Save Changes' useEffect(() => { if (open) { @@ -281,8 +276,12 @@ ${resetStates} - {title} - {description} + {isCreate ? 'Create New ${singularPascal}' : 'Edit ${singularPascal}'} + + {isCreate + ? 'Add a new ${singularName.replace(/_/g, ' ')} to your database.' + : 'Update the ${singularName.replace(/_/g, ' ')} information.'} +
@@ -302,7 +301,7 @@ ${editableFormFields} Cancel