Use LayoutPropType

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-05 08:17:30 +01:00
parent 20193ad7fe
commit f2d236d429
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
4 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ import * as sdk from '../../index';
import {MatrixClientPeg} from '../../MatrixClientPeg';
import SettingsStore from '../../settings/SettingsStore';
import {Layout} from "../../settings/Layout";
import {Layout, LayoutPropType} from "../../settings/Layout";
import {_t} from "../../languageHandler";
import {haveTileForEvent} from "../views/rooms/EventTile";
import {textForEvent} from "../../TextForEvent";
@ -137,7 +137,7 @@ export default class MessagePanel extends React.Component {
showReactions: PropTypes.bool,
// which layout to use
layout: Layout,
layout: LayoutPropType,
// whether or not to show flair at all
enableFlair: PropTypes.bool,

View File

@ -18,7 +18,7 @@ limitations under the License.
*/
import SettingsStore from "../../settings/SettingsStore";
import {Layout} from "../../settings/Layout";
import {LayoutPropType} from "../../settings/Layout";
import React, {createRef} from 'react';
import ReactDOM from "react-dom";
import PropTypes from 'prop-types';
@ -113,7 +113,7 @@ class TimelinePanel extends React.Component {
showReactions: PropTypes.bool,
// which layout to use
layout: Layout,
layout: LayoutPropType,
}
// a map from room id to read marker event timestamp

View File

@ -24,7 +24,7 @@ import {wantsDateSeparator} from '../../../DateUtils';
import {MatrixEvent} from 'matrix-js-sdk';
import {makeUserPermalink, RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks";
import SettingsStore from "../../../settings/SettingsStore";
import {Layout} from "../../../settings/Layout";
import {LayoutPropType} from "../../../settings/Layout";
import escapeHtml from "escape-html";
import MatrixClientContext from "../../../contexts/MatrixClientContext";
import {Action} from "../../../dispatcher/actions";
@ -43,7 +43,7 @@ export default class ReplyThread extends React.Component {
onHeightChanged: PropTypes.func.isRequired,
permalinkCreator: PropTypes.instanceOf(RoomPermalinkCreator).isRequired,
// Specifies which layout to use.
layout: Layout,
layout: LayoutPropType,
};
static contextType = MatrixClientContext;

View File

@ -27,7 +27,7 @@ import * as TextForEvent from "../../../TextForEvent";
import * as sdk from "../../../index";
import dis from '../../../dispatcher/dispatcher';
import SettingsStore from "../../../settings/SettingsStore";
import {Layout} from "../../../settings/Layout";
import {Layout, LayoutPropType} from "../../../settings/Layout";
import {EventStatus} from 'matrix-js-sdk';
import {formatTime} from "../../../DateUtils";
import {MatrixClientPeg} from '../../../MatrixClientPeg';
@ -227,7 +227,7 @@ export default class EventTile extends React.Component {
showReactions: PropTypes.bool,
// which layout to use
layout: Layout,
layout: LayoutPropType,
// whether or not to show flair at all
enableFlair: PropTypes.bool,