You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
@@ -55,7 +55,7 @@ class ItemRange {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IProps<T extends unknown> {
|
interface IProps<T> {
|
||||||
// height in pixels of the component returned by `renderItem`
|
// height in pixels of the component returned by `renderItem`
|
||||||
itemHeight: number;
|
itemHeight: number;
|
||||||
// function to turn an element of `items` into a react component
|
// function to turn an element of `items` into a react component
|
||||||
@@ -84,13 +84,13 @@ interface IState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.elements.LazyRenderList")
|
@replaceableComponent("views.elements.LazyRenderList")
|
||||||
export default class LazyRenderList extends React.Component<IProps<unknown>, IState> {
|
export default class LazyRenderList<T = any> extends React.Component<IProps<T>, IState> {
|
||||||
public static defaultProps: Partial<IProps<unknown>> = {
|
public static defaultProps: Partial<IProps<unknown>> = {
|
||||||
overflowItems: 20,
|
overflowItems: 20,
|
||||||
overflowMargin: 5,
|
overflowMargin: 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props: IProps<unknown>) {
|
constructor(props: IProps<T>) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
|
|||||||
Reference in New Issue
Block a user