Rename MessagePreview to EventTilePreview

pull/21833/head
Jorik Schellekens 2020-06-18 15:36:23 +01:00
parent 0d3ea6c9d4
commit b9fb9aae4a
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ interface IState {
const AVATAR_SIZE = 32; const AVATAR_SIZE = 32;
export default class MessagePreview extends React.Component<IProps, IState> { export default class EventTilePreview extends React.Component<IProps, IState> {
constructor(props: IProps) { constructor(props: IProps) {
super(props); super(props);

View File

@ -32,7 +32,7 @@ import { IValidationResult, IFieldState } from '../../../elements/Validation';
import StyledRadioButton from '../../../elements/StyledRadioButton'; import StyledRadioButton from '../../../elements/StyledRadioButton';
import StyledCheckbox from '../../../elements/StyledCheckbox'; import StyledCheckbox from '../../../elements/StyledCheckbox';
import SettingsFlag from '../../../elements/SettingsFlag'; import SettingsFlag from '../../../elements/SettingsFlag';
import MessagePreview from '../../../elements/MessagePreview'; import EventTilePreview from '../../../elements/EventTilePreview';
interface IProps { interface IProps {
} }
@ -281,7 +281,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_fontScaling"> return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_fontScaling">
<span className="mx_SettingsTab_subheading">{_t("Font size")}</span> <span className="mx_SettingsTab_subheading">{_t("Font size")}</span>
<MessagePreview <EventTilePreview
className="mx_AppearanceUserSettingsTab_fontSlider_preview" className="mx_AppearanceUserSettingsTab_fontSlider_preview"
message={_t("Hey you. You're the best!")} message={_t("Hey you. You're the best!")}
useIRCLayout={false} useIRCLayout={false}