@fonderie/react-admin-screens 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1814,7 +1814,25 @@ function UsersScreen({
|
|
|
1814
1814
|
]
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
1817
|
-
error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: styles.error, role: "alert", children: error.status === 404 ? "No user with that email." : error.explanation }) : null,
|
|
1817
|
+
error && !(error.status === 404 && selected?.id) ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: styles.error, role: "alert", children: error.status === 404 ? "No user with that email." : error.explanation }) : null,
|
|
1818
|
+
error?.status === 404 && selected?.id ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: styles.notice, role: "status", children: [
|
|
1820
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("strong", { children: "No account with id " }),
|
|
1821
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("code", { style: styles.code, children: selected.id }),
|
|
1822
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("strong", { children: "." }),
|
|
1823
|
+
" It was deleted, or never existed here. Its billing records remain."
|
|
1824
|
+
] }),
|
|
1825
|
+
billingClient ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1826
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h2", { style: styles.subtitle, children: "Plan & credits" }),
|
|
1827
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1828
|
+
SubscriberBilling,
|
|
1829
|
+
{
|
|
1830
|
+
client: billingClient,
|
|
1831
|
+
subscriber: { type: "user", id: selected.id }
|
|
1832
|
+
}
|
|
1833
|
+
)
|
|
1834
|
+
] }) : null
|
|
1835
|
+
] }) : null,
|
|
1818
1836
|
!selected ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1819
1837
|
list.error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: styles.error, role: "alert", children: list.error.explanation }) : null,
|
|
1820
1838
|
list.users.length === 0 && !list.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Empty, { icon: "users", title: "No users yet", children: "Sign-ups appear here as they happen." }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("table", { style: styles.table, children: [
|