diff --git a/src/components/ShowRawPing/components/ShowRawPing.js b/src/components/ShowRawPing/components/ShowRawPing.js index e59a85c..e8b4717 100644 --- a/src/components/ShowRawPing/components/ShowRawPing.js +++ b/src/components/ShowRawPing/components/ShowRawPing.js @@ -126,19 +126,35 @@ const ShowRawPing = ({ docId }) => { // Change message if today is the final day. if (daysRemaining === 0) { return ( -
+ Today is the last day you will be able to access this ping. -
+ ); } return ( -+ {daysRemaining} day(s) until this ping is no longer accessible. -
+ ); }; + // Prints the ping type in a more obvious place than `metadata.document_type`. + const renderPingType = () => { + if (!parsedPing || !parsedPing.metadata || !parsedPing.metadata['document_type']) { + return null; + } + + return ( + <> + + Ping Type: {parsedPing.metadata['document_type']} + ++ {renderPingType()} + {renderDaysLeftForPing()} +
You can