Skip to content

Commit cef2363

Browse files
committed
refactor advanced-form to use FormSectionComponent
1 parent 246c0ec commit cef2363

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/components/forms/advanced-form/advanced-form.component.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ import { CommonModule } from '@angular/common';
33
import { FormsModule } from '@angular/forms';
44
import { NumberInputComponent } from '../../shared/number-input/number-input.component';
55
import { VersionBadgeComponent } from '../../shared/version-badge/version-badge.component';
6+
import { FormSectionComponent } from '../../shared/form-section/form-section.component';
67
import { createFormHelper } from '../../../utils/form-helpers';
78
import { KittyVersionService } from '../../../services/kitty-version.service';
89

910
@Component({
1011
selector: 'app-advanced-form',
11-
imports: [CommonModule, FormsModule, NumberInputComponent, VersionBadgeComponent],
12+
imports: [CommonModule, FormsModule, NumberInputComponent, VersionBadgeComponent, FormSectionComponent],
1213
template: `
13-
<div class="space-y-6">
14-
<div>
15-
<h2 class="text-2xl font-bold text-kitty-primary mb-2">Advanced</h2>
16-
<p class="text-kitty-text-dim">Shell integration, remote control, startup configuration, and system settings</p>
17-
</div>
18-
14+
<app-form-section title="Advanced" description="Shell integration, remote control, startup configuration, and system settings">
1915
<div class="bg-kitty-warning/10 border border-kitty-warning/30 rounded-lg p-4">
2016
<p class="text-kitty-warning text-sm">
2117
Settings marked
@@ -317,7 +313,7 @@ import { KittyVersionService } from '../../../services/kitty-version.service';
317313
</div>
318314
}
319315
</div>
320-
</div>
316+
</app-form-section>
321317
`,
322318
styles: []
323319
})

0 commit comments

Comments
 (0)