diff --git a/prd/PRD-codebase-cleanup-refactoring.md b/prd/PRD-codebase-cleanup-refactoring.md index e0dd431..79adf9d 100644 --- a/prd/PRD-codebase-cleanup-refactoring.md +++ b/prd/PRD-codebase-cleanup-refactoring.md @@ -94,8 +94,8 @@ Create a consistent design system by extracting hardcoded values. ### Phase 3: Component Refactoring (Weeks 3-4) Refactor components to reduce duplication and complexity. -- [ ] **Create base components** - - [ ] Extract `BaseModal` component for shared modal logic +- [-] **Create base components** + - [x] Extract `BaseModal` component for shared modal logic - [ ] Create `BaseDropdown` for dropdown patterns - [ ] Merge `FormField` and `FormFieldWrapper` - [ ] Create `BaseSegmentedController` for shared logic diff --git a/src/lib/components/admin/BaseModal.svelte b/src/lib/components/admin/BaseModal.svelte new file mode 100644 index 0000000..ccbde35 --- /dev/null +++ b/src/lib/components/admin/BaseModal.svelte @@ -0,0 +1,155 @@ + + +{#if isOpen} + +{/if} + + \ No newline at end of file diff --git a/src/lib/components/admin/DeleteConfirmationModal.svelte b/src/lib/components/admin/DeleteConfirmationModal.svelte index 84a1944..df40c15 100644 --- a/src/lib/components/admin/DeleteConfirmationModal.svelte +++ b/src/lib/components/admin/DeleteConfirmationModal.svelte @@ -1,4 +1,5 @@ -{#if isOpen} -