Commit Graph

14 Commits (d5db67be38c57ce821108a0a27ab98b55ec7a367)

Author SHA1 Message Date
Michael Telatynski d5db67be38 Switch to createReactClass: views/elements & views/groups. React 16 :D
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 18:35:52 +01:00
Luke Barnard 6b9a2909df Add rule to enforce spacing in curly brackets in JSX children
This required an updated in version of eslint-plugin-react to 7.4.0.
2017-09-28 11:21:06 +01:00
David Baker 621a108b5e Use flow style function definition for doc 2017-09-22 15:15:10 +01:00
David Baker dba48e2f8f use start, end rather than min, max 2017-09-22 15:07:45 +01:00
David Baker f1a2b6d327 lint 2017-09-22 13:35:49 +01:00
David Baker 16398fbfc2 Allow TruncatedList to get children via a callback
And update MemberList to use it as such. This means that the parent
only needs to make react elements for the elements that will
actually be rendered, rather than all of them.

In practive this doesn't make a huge difference as making React
elements is fairly fast, but experimentally (with all profiling
turned on), MemberList went from 25ms in the constructor and
81ms in render to 38ms in constructor but sub 1ms render for
Matrix HQ.
2017-09-22 13:15:02 +01:00
David Baker 29d8df2c9e De-lint TruncatedList 2017-09-22 10:00:46 +01:00
Kegan Dougal 1c58a9cd5e Everything but src/components/views/rooms 2017-06-08 12:33:29 +01:00
David Baker 18d4d3392a Fix a bunch of linting errors
eslint --fix and a few manual ones
2017-01-20 14:22:27 +00:00
Matthew Hodgson 5e5fdb9b96 fix vector-im/vector-web#921 2016-02-14 13:38:12 +02:00
Kegan Dougal 38d5c7d5c5 Filter out undefined/null children which won't render 2016-01-22 15:57:42 +00:00
Kegan Dougal d72ab641d0 Expand the list when the overflow element is clicked
Negative truncateAt values means "do not truncate".
2016-01-21 15:57:59 +00:00
Kegan Dougal eed83f982e Add a suitable overflow tile for the member list 2016-01-21 11:41:28 +00:00
Kegan Dougal 9f362e488c Add a TruncatedList component, which truncates children passed to it. 2016-01-21 11:30:37 +00:00