• Robert Knight's avatar
    Convert timestamp component to React · fee4bac3
    Robert Knight authored
    A notable change is that the current time used to generate the relative
    timestamp is now stored as an explicit piece of state, rather than
    implicitly using the current time when calling `toFuzzyString`. This
    provides a clean way to trigger a re-render of timestamp periodically:
    an effect updates the "now" time, and that triggers a recalculation of
    the timestamp.
    
    The tests have also been revised to better capture the user-facing
    behavior of the component.
    fee4bac3
Name
Last commit
Last update
..
annotation-header.html Loading commit data...
annotation-share-dialog.html Loading commit data...
annotation-thread.html Loading commit data...
annotation-viewer-content.html Loading commit data...
annotation.html Loading commit data...
dropdown-menu-btn.html Loading commit data...
excerpt.html Loading commit data...
group-list.html Loading commit data...
help-link.html Loading commit data...
help-panel.html Loading commit data...
hypothesis-app.html Loading commit data...
loggedout-message.html Loading commit data...
login-control.html Loading commit data...
markdown.html Loading commit data...
moderation-banner.html Loading commit data...
new-note-btn.html Loading commit data...
publish-annotation-btn.html Loading commit data...
search-input.html Loading commit data...
search-status-bar.html Loading commit data...
selection-tabs.html Loading commit data...
share-dialog.html Loading commit data...
sidebar-content.html Loading commit data...
sidebar-tutorial.html Loading commit data...
sort-dropdown.html Loading commit data...
stream-content.html Loading commit data...
tag-editor.html Loading commit data...
thread-list.html Loading commit data...
top-bar.html Loading commit data...