Popup kit in components/ui.tsx; plan for popups everywhere
- ReadCard, Field, Fields and ModalButtons move from components/customer/ReadCard.tsx into components/ui.tsx, next to Modal, FormError and PageMessage. - useSubmit moves from components/install/shared.ts into components/ui.tsx. - The customer and install components import them from @/components/ui. No visible change. - docs/POPUPS-PLAN.md: every inline add or edit left in the Hub, and the plan for 2.16.0 and 2.17.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
import React, { useState } from "react";
|
||||
import { api, errorText } from "@/lib/api";
|
||||
import { CYCLE, day, type BillingCycle } from "@/lib/billing";
|
||||
import { FormError, Modal } from "@/components/ui";
|
||||
import { Field, Fields, ModalButtons, ReadCard } from "./ReadCard";
|
||||
import { Field, Fields, FormError, Modal, ModalButtons, ReadCard } from "@/components/ui";
|
||||
import { changed, type CustomerBillingData, type Done } from "./shared";
|
||||
|
||||
/** The church's billing schedule: one for all its products. The page holds the popup (the Next invoice popup opens it too). */
|
||||
|
||||
Reference in New Issue
Block a user