Skip to content

Commit

Permalink
Remove legacy ActivityFeed code
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsunkel committed Dec 16, 2024
1 parent 56e5247 commit 2f24057
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import CardUtils from './card/CardUtils'
import ActivityCardWrapper from './card/ActivityCardWrapper'
import ActivityCardLabels from './card/ActivityCardLabels'
import ActivityCardSubject from './card/ActivityCardSubject'
import ActivityCardNotes from './card/ActivityCardNotes'
import ActivityCardMetadata from './card/ActivityCardMetadata'
import ActivityOverviewSummary from './card/item-renderers/ActivityOverviewSummary'

Expand Down Expand Up @@ -104,38 +103,6 @@ export default class DirectoryFormsApi extends React.PureComponent {
<ActivityCardMetadata metadata={metadata} />
</ActivityCardWrapper>
)
} else {
kind = 'great.gov.uk Enquiry'
const metadata = [
{ label: 'Date', value: format(sentDate) },
{
label: 'Name',
value: `${formData.first_name} ${formData.last_name}`,
},
{ label: 'Job title', value: formData.position },
{ label: 'Email', value: formData.email },
]
return isOverview ? (
<ActivityOverviewSummary
dataTest="export-support-service-great-summary"
activity={activity}
date={format(sentDate)}
kind={kind}
subject="Enquiry"
summary={`Enquirer ${formData.first_name} ${formData.last_name}`}
></ActivityOverviewSummary>
) : (
<ActivityCardWrapper>
<ActivityCardSubject>Enquiry</ActivityCardSubject>
<ActivityCardLabels
theme="great.gov.uk"
service="export"
kind={kind}
/>
<ActivityCardNotes notes={formData.comment} />
<ActivityCardMetadata metadata={metadata} />
</ActivityCardWrapper>
)
}
}
}

This file was deleted.

0 comments on commit 2f24057

Please sign in to comment.