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,10 +3,9 @@
|
||||
import React, { useState } from "react";
|
||||
import type { Release } from "@/lib/types";
|
||||
import { PRODUCT_NAMES } from "@/lib/products";
|
||||
import { FormError, Modal } from "@/components/ui";
|
||||
import { FormError, Modal, ModalButtons, useSubmit } from "@/components/ui";
|
||||
import { fromInput, toInput } from "@/components/servers";
|
||||
import { ModalButtons } from "@/components/customer/ReadCard";
|
||||
import { H, changed, post, productName, useSubmit, withWarnings, type Done, type Install } from "./shared";
|
||||
import { H, changed, post, productName, withWarnings, type Done, type Install } from "./shared";
|
||||
|
||||
/**
|
||||
* Schedule an update of one install: at a time at least 4 hours away (the church gets notice), or
|
||||
|
||||
Reference in New Issue
Block a user