chore(format): fix prettier drift on plex pickers landed on main
`prettier --check` was red on main for these two files (drifted in the collection-review-tail merge); no logic change, format-only.
This commit is contained in:
@@ -41,13 +41,19 @@ export default function PlexLibraryPicker({
|
|||||||
if (debounced.length === 0) return <>{emptyHint}</>;
|
if (debounced.length === 0) return <>{emptyHint}</>;
|
||||||
if (q.isLoading) return <LoadingState label={t("plex.loading")} />;
|
if (q.isLoading) return <LoadingState label={t("plex.loading")} />;
|
||||||
if (q.isError) return <p className="text-muted text-sm">{t("common.loadError")}</p>;
|
if (q.isError) return <p className="text-muted text-sm">{t("common.loadError")}</p>;
|
||||||
if (results.length === 0) return <p className="text-muted text-sm">{t("plex.collection.addNoResults")}</p>;
|
if (results.length === 0)
|
||||||
|
return <p className="text-muted text-sm">{t("plex.collection.addNoResults")}</p>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className="flex flex-col gap-1">
|
<ul className="flex flex-col gap-1">
|
||||||
{results.map((c) => (
|
{results.map((c) => (
|
||||||
<li key={c.id} className="flex items-center gap-3">
|
<li key={c.id} className="flex items-center gap-3">
|
||||||
<img src={c.thumb} alt="" className="h-12 w-8 shrink-0 rounded object-cover" loading="lazy" />
|
<img
|
||||||
|
src={c.thumb}
|
||||||
|
alt=""
|
||||||
|
className="h-12 w-8 shrink-0 rounded object-cover"
|
||||||
|
loading="lazy"
|
||||||
|
/>
|
||||||
<span className="min-w-0 flex-1 truncate text-sm">
|
<span className="min-w-0 flex-1 truncate text-sm">
|
||||||
{c.title}
|
{c.title}
|
||||||
{c.year != null && <span className="text-muted"> · {c.year}</span>}
|
{c.year != null && <span className="text-muted"> · {c.year}</span>}
|
||||||
|
|||||||
@@ -96,11 +96,7 @@ function NewCollectionPanel({
|
|||||||
onCreated(col.id);
|
onCreated(col.id);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// The backend is authoritative on per-library name uniqueness — its 409 is localized to nameTaken.
|
// The backend is authoritative on per-library name uniqueness — its 409 is localized to nameTaken.
|
||||||
notifyCollectionEditError(
|
notifyCollectionEditError(e, t("plex.collection.editFailed"), t("plex.collection.nameTaken"));
|
||||||
e,
|
|
||||||
t("plex.collection.editFailed"),
|
|
||||||
t("plex.collection.nameTaken"),
|
|
||||||
);
|
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user