-
diff --git a/src/components/edit/RecentChangeHistory.tsx b/src/components/edit/RecentChangeHistory.tsx
index 6f8d25946..59a254a0a 100644
--- a/src/components/edit/RecentChangeHistory.tsx
+++ b/src/components/edit/RecentChangeHistory.tsx
@@ -9,10 +9,14 @@ import { ChangesetType, ChangeType, AreaType, ClimbType, OrganizationType, Docum
export interface RecentChangeHistoryProps {
history: ChangesetType[]
}
+
+/**
+ * Show all changes
+ */
export default function RecentChangeHistory ({ history }: RecentChangeHistoryProps): JSX.Element {
return (
- {history.map(changetset => )}
+ {history.map(changetset => )}
)
}
@@ -21,7 +25,10 @@ interface ChangsetRowProps {
changeset: ChangesetType
}
-export const ChangesetRow = ({ changeset }: ChangsetRowProps): JSX.Element => {
+/**
+ * A card showing individual changeset
+ */
+export const ChangesetCard: React.FC
= ({ changeset }) => {
const { createdAt, editedByUser, operation, changes } = changeset
// @ts-expect-error
@@ -186,13 +193,6 @@ const ActionIcon = ({ icon, clz }: ActionIconProps): JSX.Element => (
{icon}
)
-interface OpBadgeProps {
- label: string
- clz?: string
-}
-
-const OpBadge = ({ label, clz = 'badge-outline' }: OpBadgeProps): JSX.Element => {label}
-
const operationLabelMap = {
addArea: {
borderCue: 'border-l-green-500',
@@ -235,15 +235,18 @@ const operationLabelMap = {
icon: } />
},
addOrganization: {
- badge: ,
+ badge: 'added an organization',
+ borderCue: 'border-l-green-500',
icon: } clz='bg-success' />
},
updateOrganization: {
- badge: ,
+ badge: 'updated an organization',
+ borderCue: 'border-l-black',
icon: } />
},
deleteOrganization: {
- badge: ,
+ badge: 'deleted an organization',
+ borderCue: 'border-l-pink-500',
icon: } clz='bg-error' />
}
}
diff --git a/src/components/ui/Card/Card.tsx b/src/components/ui/Card/Card.tsx
index e28cf9349..3ed9eb6ba 100644
--- a/src/components/ui/Card/Card.tsx
+++ b/src/components/ui/Card/Card.tsx
@@ -17,7 +17,7 @@ export default function Card ({
bordered = false
}: CardProps): JSX.Element {
return (
-