This commit is contained in:
Ed Chalstrey 2022-08-09 14:50:26 +01:00
parent 292c75238c
commit b4a521675a

View File

@ -82,30 +82,6 @@ const BuildingEditSummary: React.FunctionComponent<BuildingEditSummaryProps> = (
);
};
const BuildingEditSummaryBrief: React.FunctionComponent<BuildingEditSummaryProps> = ({
historyEntry,
showBuildingId = false,
hyperlinkCategories = false
}) => {
const entriesWithMetadata = enrichHistoryEntries(historyEntry.forward_patch, historyEntry.reverse_patch);
const entriesByCategory = arrayToDictionary(entriesWithMetadata, x => x.category);
const categoryHyperlinkTemplate = hyperlinkCategories && historyEntry.building_id != undefined ?
`/edit/$category/${historyEntry.building_id}` :
undefined;
return (
<div className="edit-history-entry">
<h2 className="edit-history-timestamp">Edited on {formatDate(parseDate(historyEntry.revision_timestamp))}</h2>
</div>
);
};
export {
BuildingEditSummary
};
export {
BuildingEditSummaryBrief
};