Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

sortabletable fixes, make ledger table sortable #4057

Merged
merged 2 commits into from
Sep 16, 2016
Merged

Conversation

diracdeltas
Copy link
Member

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fix #4047
FIx #4046
Also refactors SortableTable for performance

Test Plan:

  1. make sure sorting by time in about:history sorts in chronological order, not lexicographic
  2. go to about:preferences#payments, make sure it's sorted by increasing rank
  3. click all of the column headers and make sure it sorts

Auditors: @bsclifton

</tbody>
</table>
}
}

SortableTable.defaultProps = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i took this out because no other components use defaultProps

entry.get('lastAccessedTime')
? new Date(entry.get('lastAccessedTime')).toLocaleTimeString()
: '',
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@bsclifton
Copy link
Member

Pulled it locally and tested- confirmed it's working good. Spacing seems to be a little different with the ledger screen, but still looks great.

Great job 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants