File tree 1 file changed +5
-9
lines changed
src/components/parts/_legacy/publishing-calendar
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,6 @@ const processEntry = (item: PublishingCalendarEntryProps): PublishingCalendarEnt
53
53
} ;
54
54
} ;
55
55
56
- const EntryName = ( { displayName, link } : PublishingCalendarEntryData ) => {
57
- return link ? (
58
- < LenkeInline href = { link } > { displayName } </ LenkeInline >
59
- ) : (
60
- < BodyLong > { displayName } </ BodyLong >
61
- ) ;
62
- } ;
63
-
64
56
export const PublishingCalendarEntryLegacyPart = ( props : ContentProps ) => {
65
57
if ( props . type !== ContentType . PublishingCalendarEntry ) {
66
58
return null ;
@@ -78,7 +70,11 @@ export const PublishingCalendarEntryLegacyPart = (props: ContentProps) => {
78
70
</ Table . DataCell >
79
71
< Table . DataCell >
80
72
< BodyLong className = { style . dateInfo } > { entry . period } </ BodyLong >
81
- < EntryName { ...entry } />
73
+ { entry . link ? (
74
+ < LenkeInline href = { entry . link } > { entry . displayName } </ LenkeInline >
75
+ ) : (
76
+ < BodyLong > { entry . displayName } </ BodyLong >
77
+ ) }
82
78
</ Table . DataCell >
83
79
</ Table . Row >
84
80
) ;
You can’t perform that action at this time.
0 commit comments