Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e93a41c

Browse files
committed
Minor clarity
1 parent 51038b0 commit e93a41c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/views/rooms/RoomSublist2.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
235235
// we have a cutoff condition - add the button to show all
236236

237237
// we +1 to account for the room we're about to hide with our 'show more' button
238+
// this results in the button always being 1+, and not needing an i18n `count`.
238239
const numMissing = (tiles.length - visibleTiles.length) + 1;
239240

240241
// TODO: CSS TBD

src/stores/room-list/ListLayout.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
import { TagID } from "./models";
18+
1719
const TILE_HEIGHT_PX = 34;
1820

1921
interface ISerializedListLayout {
@@ -23,7 +25,7 @@ interface ISerializedListLayout {
2325
export class ListLayout {
2426
private _n = 0;
2527

26-
constructor(public readonly tagId) {
28+
constructor(public readonly tagId: TagID) {
2729
const serialized = localStorage.getItem(this.key);
2830
if (serialized) {
2931
// We don't use the setters as they cause writes.

0 commit comments

Comments
 (0)