Complete grouped collaborative editorial queues and native review coverage
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -57,9 +57,13 @@ const titles: Record<string, string> = {
|
||||
export default function TerritorialEditorial({
|
||||
roles,
|
||||
actorId,
|
||||
initialTerritory,
|
||||
noticeVersion,
|
||||
}: {
|
||||
roles: string[];
|
||||
actorId: string;
|
||||
initialTerritory?: string | null;
|
||||
noticeVersion?: number | null;
|
||||
}) {
|
||||
const [rows, setRows] = useState<Row[]>([]);
|
||||
const [next, setNext] = useState<string | null>(null);
|
||||
@@ -109,6 +113,7 @@ export default function TerritorialEditorial({
|
||||
'/api/v1/geo/sources?limit=100',
|
||||
).then((data) => setSources(data.data)),
|
||||
]).catch(fail);
|
||||
if (initialTerritory) void open(initialTerritory);
|
||||
}, []);
|
||||
const open = async (id: string) => {
|
||||
setBusy(true);
|
||||
@@ -223,6 +228,12 @@ export default function TerritorialEditorial({
|
||||
até à publicação expressa.
|
||||
</p>
|
||||
{message && <p role="status">{message}</p>}
|
||||
{noticeVersion && (
|
||||
<p>
|
||||
Este aviso refere-se à versão {noticeVersion}. Confira o
|
||||
histórico e a versão actual antes de decidir.
|
||||
</p>
|
||||
)}
|
||||
<ul className="space-y-2">
|
||||
{rows.map((row) => (
|
||||
<li key={row.id}>
|
||||
|
||||
Reference in New Issue
Block a user