mirror of https://github.com/vector-im/riot-web
Rename MessagePreview to EventTilePreview
parent
0d3ea6c9d4
commit
b9fb9aae4a
|
@ -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);
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue