@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.js
CHANGED
|
@@ -1779,7 +1779,25 @@ function UsersScreen({
|
|
|
1779
1779
|
]
|
|
1780
1780
|
}
|
|
1781
1781
|
),
|
|
1782
|
-
error ? /* @__PURE__ */ jsx12("p", { style: styles.error, role: "alert", children: error.status === 404 ? "No user with that email." : error.explanation }) : null,
|
|
1782
|
+
error && !(error.status === 404 && selected?.id) ? /* @__PURE__ */ jsx12("p", { style: styles.error, role: "alert", children: error.status === 404 ? "No user with that email." : error.explanation }) : null,
|
|
1783
|
+
error?.status === 404 && selected?.id ? /* @__PURE__ */ jsxs12(Fragment7, { children: [
|
|
1784
|
+
/* @__PURE__ */ jsxs12("div", { style: styles.notice, role: "status", children: [
|
|
1785
|
+
/* @__PURE__ */ jsx12("strong", { children: "No account with id " }),
|
|
1786
|
+
/* @__PURE__ */ jsx12("code", { style: styles.code, children: selected.id }),
|
|
1787
|
+
/* @__PURE__ */ jsx12("strong", { children: "." }),
|
|
1788
|
+
" It was deleted, or never existed here. Its billing records remain."
|
|
1789
|
+
] }),
|
|
1790
|
+
billingClient ? /* @__PURE__ */ jsxs12(Fragment7, { children: [
|
|
1791
|
+
/* @__PURE__ */ jsx12("h2", { style: styles.subtitle, children: "Plan & credits" }),
|
|
1792
|
+
/* @__PURE__ */ jsx12(
|
|
1793
|
+
SubscriberBilling,
|
|
1794
|
+
{
|
|
1795
|
+
client: billingClient,
|
|
1796
|
+
subscriber: { type: "user", id: selected.id }
|
|
1797
|
+
}
|
|
1798
|
+
)
|
|
1799
|
+
] }) : null
|
|
1800
|
+
] }) : null,
|
|
1783
1801
|
!selected ? /* @__PURE__ */ jsxs12(Fragment7, { children: [
|
|
1784
1802
|
list.error ? /* @__PURE__ */ jsx12("p", { style: styles.error, role: "alert", children: list.error.explanation }) : null,
|
|
1785
1803
|
list.users.length === 0 && !list.isLoading ? /* @__PURE__ */ jsx12(Empty, { icon: "users", title: "No users yet", children: "Sign-ups appear here as they happen." }) : /* @__PURE__ */ jsxs12("table", { style: styles.table, children: [
|