[Glitch] Refactor: Relative timestamp component
Port cffa8de626 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
f2d834c852
commit
d6aee5b21f
12 files changed
+454
-315
No files matched your search
@@ -50,7 +50,7 @@ class CompareHistoryModal extends PureComponent {
|
||||
const content = currentVersion.get('content');
|
||||
const spoilerContent = escapeTextContentForBrowser(currentVersion.get('spoiler_text'));
|
||||
|
||||
const formattedDate = <RelativeTimestamp timestamp={currentVersion.get('created_at')} short={false} />;
|
||||
const formattedDate = <RelativeTimestamp timestamp={currentVersion.get('created_at')} long />;
|
||||
const formattedName = <InlineAccount accountId={currentVersion.get('account')} />;
|
||||
|
||||
const label = currentVersion.get('original') ? (
|
||||
|
||||
Reference in new issue
Block a user