- {_t('Autocomplete Delay (ms):')}
+ { _t('Autocomplete Delay (ms):') }
{ _t("Disable inline URL previews by default") }
@@ -759,13 +759,13 @@ module.exports = React.createClass({
if (setting.fn) setting.fn(e.target.checked);
};
- return
-
+
-
+
{ _t(setting.label) }
;
@@ -784,15 +784,15 @@ module.exports = React.createClass({
value: setting.value,
});
};
- return
-
+
-
+
{ setting.label }
;
@@ -829,10 +829,10 @@ module.exports = React.createClass({
{ _t("Cryptography") }
- {_t("Device ID:")}
- {deviceId}
- {_t("Device key:")}
- {identityKey}
+ { _t("Device ID:") }
+ { deviceId }
+ { _t("Device key:") }
+ { identityKey }
{ importExportButtons }
@@ -851,11 +851,11 @@ module.exports = React.createClass({
{ _t("Ignored Users") }
- {this.state.ignoredUsers.map(function(userId) {
+ { this.state.ignoredUsers.map(function(userId) {
return ( );
- })}
+ }) }
@@ -871,13 +871,13 @@ module.exports = React.createClass({
if (setting.fn) setting.fn(e.target.checked);
};
- return
-
+
-
+
{ _t(setting.label) }
;
@@ -887,8 +887,8 @@ module.exports = React.createClass({
const DevicesPanel = sdk.getComponent('settings.DevicesPanel');
return (
-
{_t("Devices")}
-
+ { _t("Devices") }
+
);
},
@@ -903,7 +903,7 @@ module.exports = React.createClass({
{ _t("Found a bug?") }
{_t('Report it')}
+ onClick={this._onBugReportClicked}>{ _t('Report it') }
@@ -911,13 +911,13 @@ module.exports = React.createClass({
},
_renderAnalyticsControl: function() {
- if (!SdkConfig.get().piwik) return
;
+ if (!SdkConfig.get().piwik) return
;
return
{ _t('Analytics') }
- {_t('Riot collects anonymous analytics to allow us to improve the application.')}
- {ANALYTICS_SETTINGS_LABELS.map( this._renderLocalSetting )}
+ { _t('Riot collects anonymous analytics to allow us to improve the application.') }
+ { ANALYTICS_SETTINGS_LABELS.map( this._renderLocalSetting ) }
;
},
@@ -947,10 +947,10 @@ module.exports = React.createClass({
type="checkbox"
id={feature.id}
name={feature.id}
- defaultChecked={ UserSettingsStore.isFeatureEnabled(feature.id) }
- onChange={ onChange }
+ defaultChecked={UserSettingsStore.isFeatureEnabled(feature.id)}
+ onChange={onChange}
/>
- {feature.name}
+ { feature.name }
);
});
@@ -964,7 +964,7 @@ module.exports = React.createClass({
{ _t("Labs") }
{ _t("These are experimental features that may break in unexpected ways") }. { _t("Use with caution") }.
- {features}
+ { features }
);
@@ -997,10 +997,10 @@ module.exports = React.createClass({
const platform = PlatformPeg.get();
if ('canSelfUpdate' in platform && platform.canSelfUpdate() && 'startUpdateCheck' in platform) {
return
-
{_t('Updates')}
+
{ _t('Updates') }
- {_t('Check for update')}
+ { _t('Check for update') }
;
@@ -1026,7 +1026,7 @@ module.exports = React.createClass({
reject = (
- {_t("Reject all %(invitedRooms)s invites", {invitedRooms: invitedRooms.length})}
+ { _t("Reject all %(invitedRooms)s invites", {invitedRooms: invitedRooms.length}) }
);
}
@@ -1034,7 +1034,7 @@ module.exports = React.createClass({
return
{ _t("Bulk Options") }
- {reject}
+ { reject }
;
},
@@ -1052,7 +1052,7 @@ module.exports = React.createClass({
defaultChecked={settings['auto-launch']}
onChange={this._onAutoLaunchChanged}
/>
- {_t('Start automatically after system login')}
+ { _t('Start automatically after system login') }
;
@@ -1064,7 +1064,7 @@ module.exports = React.createClass({
},
_mapWebRtcDevicesToSpans: function(devices) {
- return devices.map((device) => {device.label} );
+ return devices.map((device) => { device.label } );
},
_setAudioInput: function(deviceId) {
@@ -1100,15 +1100,15 @@ module.exports = React.createClass({
if (this.state.mediaDevices === false) {
return (
- {_t('Missing Media Permissions, click here to request.')}
+ { _t('Missing Media Permissions, click here to request.') }
);
} else if (!this.state.mediaDevices) return;
const Dropdown = sdk.getComponent('elements.Dropdown');
- let microphoneDropdown = {_t('No Microphones detected')}
;
- let webcamDropdown = {_t('No Webcams detected')}
;
+ let microphoneDropdown = { _t('No Microphones detected') }
;
+ let webcamDropdown = { _t('No Webcams detected') }
;
const defaultOption = {
deviceId: '',
@@ -1125,12 +1125,12 @@ module.exports = React.createClass({
}
microphoneDropdown =
-
{_t('Microphone')}
+ { _t('Microphone') }
- {this._mapWebRtcDevicesToSpans(audioInputs)}
+ { this._mapWebRtcDevicesToSpans(audioInputs) }
;
}
@@ -1145,25 +1145,25 @@ module.exports = React.createClass({
}
webcamDropdown =
-
{_t('Camera')}
+ { _t('Camera') }
- {this._mapWebRtcDevicesToSpans(videoInputs)}
+ { this._mapWebRtcDevicesToSpans(videoInputs) }
;
}
return
- {microphoneDropdown}
- {webcamDropdown}
+ { microphoneDropdown }
+ { webcamDropdown }
;
},
_renderWebRtcSettings: function() {
return
-
{_t('VoIP')}
+
{ _t('VoIP') }
{ WEBRTC_SETTINGS_LABELS.map(this._renderLocalSetting) }
{ this._renderWebRtcDeviceSettings() }
@@ -1229,7 +1229,7 @@ module.exports = React.createClass({
return (
- {this.nameForMedium(val.medium)}
+ { this.nameForMedium(val.medium) }
-
@@ -1250,16 +1250,16 @@ module.exports = React.createClass({
addEmailSection = (
- {_t('Email')}
+ { _t('Email') }
+ placeholder={_t("Add email address")}
+ blurToCancel={false}
+ onValueChanged={this._onAddEmailEditFinished} />
@@ -1307,8 +1307,8 @@ module.exports = React.createClass({
return (
- {threepidsSection}
+ { threepidsSection }
-
+
+ showUploadSection={false} className="mx_UserSettings_avatarPicker_img" />
@@ -1357,37 +1357,37 @@ module.exports = React.createClass({
: null
}
- {accountJsx}
+ { accountJsx }
- {this._renderReferral()}
+ { this._renderReferral() }
- {notificationArea}
+ { notificationArea }
- {this._renderUserInterfaceSettings()}
- {this._renderLabs()}
- {this._renderWebRtcSettings()}
- {this._renderDevicesPanel()}
- {this._renderCryptoInfo()}
- {this._renderIgnoredUsers()}
- {this._renderBulkOptions()}
- {this._renderBugReport()}
+ { this._renderUserInterfaceSettings() }
+ { this._renderLabs() }
+ { this._renderWebRtcSettings() }
+ { this._renderDevicesPanel() }
+ { this._renderCryptoInfo() }
+ { this._renderIgnoredUsers() }
+ { this._renderBulkOptions() }
+ { this._renderBugReport() }
- {PlatformPeg.get().isElectron() && this._renderElectronSettings()}
+ { PlatformPeg.get().isElectron() && this._renderElectronSettings() }
- {this._renderAnalyticsControl()}
+ { this._renderAnalyticsControl() }
{ _t("Advanced") }
- { _t("Logged in as:") } {this._me}
+ { _t("Logged in as:") } { this._me }
- {_t('Access Token:')}
+ { _t('Access Token:') }
+ data-spoiler={MatrixClientPeg.get().getAccessToken()}>
<{ _t("click to reveal") }>
@@ -1398,23 +1398,23 @@ module.exports = React.createClass({
{ _t("Identity Server is") } { MatrixClientPeg.get().getIdentityServerUrl() }
- {_t('matrix-react-sdk version:')} {(REACT_SDK_VERSION !== '')
+ { _t('matrix-react-sdk version:') } { (REACT_SDK_VERSION !== '')
? gHVersionLabel('matrix-org/matrix-react-sdk', REACT_SDK_VERSION)
: REACT_SDK_VERSION
- }
- {_t('riot-web version:')} {(this.state.vectorVersion !== undefined)
+ }
+ { _t('riot-web version:') } { (this.state.vectorVersion !== undefined)
? gHVersionLabel('vector-im/riot-web', this.state.vectorVersion)
: 'unknown'
- }
- { _t("olm version:") } {olmVersionString}
+ }
+ { _t("olm version:") } { olmVersionString }
- {this._renderCheckUpdate()}
+ { this._renderCheckUpdate() }
- {this._renderClearCache()}
+ { this._renderClearCache() }
- {this._renderDeactivateAccount()}
+ { this._renderDeactivateAccount() }
diff --git a/src/components/views/dialogs/AddressPickerDialog.js b/src/components/views/dialogs/AddressPickerDialog.js
index 4610388afc..6a027ac034 100644
--- a/src/components/views/dialogs/AddressPickerDialog.js
+++ b/src/components/views/dialogs/AddressPickerDialog.js
@@ -495,7 +495,7 @@ module.exports = React.createClass({
const AddressTile = sdk.getComponent("elements.AddressTile");
for (let i = 0; i < this.state.userList.length; i++) {
query.push(
- ,
+ ,
);
}
}
@@ -529,24 +529,24 @@ module.exports = React.createClass({
validTypesList: validTypeDescriptions.join(", "),
});
error =
- {_t("You have entered an invalid address.")}
+ { _t("You have entered an invalid address.") }
- {tryUsing}
+ { tryUsing }
;
} else if (this.state.searchError) {
- error = {this.state.searchError}
;
+ error = { this.state.searchError }
;
} else if (
this.state.query.length > 0 &&
this.state.queryList.length === 0 &&
!this.state.busy
) {
- error = {_t("No results")}
;
+ error = { _t("No results") }
;
} else {
addressSelector = (
{this.addressSelector = ref;}}
- addressList={ this.state.queryList }
- onSelected={ this.onSelected }
- truncateAt={ TRUNCATE_QUERY_LIST }
+ addressList={this.state.queryList}
+ onSelected={this.onSelected}
+ truncateAt={TRUNCATE_QUERY_LIST}
/>
);
}
@@ -554,7 +554,7 @@ module.exports = React.createClass({
return (
- {this.props.title}
+ { this.props.title }
@@ -570,7 +570,7 @@ module.exports = React.createClass({
- {this.props.button}
+ { this.props.button }
diff --git a/src/components/views/dialogs/ConfirmRedactDialog.js b/src/components/views/dialogs/ConfirmRedactDialog.js
index 7922b7b289..7b5a9f776b 100644
--- a/src/components/views/dialogs/ConfirmRedactDialog.js
+++ b/src/components/views/dialogs/ConfirmRedactDialog.js
@@ -52,20 +52,20 @@ export default React.createClass({
return (
- {_t("Are you sure you wish to remove (delete) this event? " +
- "Note that if you delete a room name or topic change, it could undo the change.")}
+ { _t("Are you sure you wish to remove (delete) this event? " +
+ "Note that if you delete a room name or topic change, it could undo the change.") }
- {_t("Remove")}
+ { _t("Remove") }
- {_t("Cancel")}
+ { _t("Cancel") }
diff --git a/src/components/views/dialogs/ConfirmUserActionDialog.js b/src/components/views/dialogs/ConfirmUserActionDialog.js
index 11fba1a322..9091d8975e 100644
--- a/src/components/views/dialogs/ConfirmUserActionDialog.js
+++ b/src/components/views/dialogs/ConfirmUserActionDialog.js
@@ -88,7 +88,7 @@ export default React.createClass({
@@ -112,22 +112,22 @@ export default React.createClass({
return (
- {avatar}
+ { avatar }
-
{name}
-
{userId}
+
{ name }
+
{ userId }
- {reasonBox}
+ { reasonBox }
- {this.props.action}
+ { this.props.action }
diff --git a/src/components/views/dialogs/CreateGroupDialog.js b/src/components/views/dialogs/CreateGroupDialog.js
index 23194f20a5..07ebb13aad 100644
--- a/src/components/views/dialogs/CreateGroupDialog.js
+++ b/src/components/views/dialogs/CreateGroupDialog.js
@@ -142,8 +142,8 @@ export default React.createClass({
// rather than displaying what the server gives us, but synapse doesn't give
// any yet.
createErrorNode =
-
{_t('Room creation failed')}
-
{this.state.createError.message}
+
{ _t('Room creation failed') }
+
{ this.state.createError.message }
;
}
@@ -156,7 +156,7 @@ export default React.createClass({
- {_t('Group Name')}
+ { _t('Group Name') }
- {_t('Group ID')}
+ { _t('Group ID') }
- {this.state.groupIdError}
+ { this.state.groupIdError }
- {createErrorNode}
+ { createErrorNode }
diff --git a/src/components/views/dialogs/DeviceVerifyDialog.js b/src/components/views/dialogs/DeviceVerifyDialog.js
index 613fe540a4..ba31d2a8c2 100644
--- a/src/components/views/dialogs/DeviceVerifyDialog.js
+++ b/src/components/views/dialogs/DeviceVerifyDialog.js
@@ -28,25 +28,25 @@ export default function DeviceVerifyDialog(props) {
const body = (
- {_t("To verify that this device can be trusted, please contact its " +
+ { _t("To verify that this device can be trusted, please contact its " +
"owner using some other means (e.g. in person or a phone call) " +
"and ask them whether the key they see in their User Settings " +
- "for this device matches the key below:")}
+ "for this device matches the key below:") }
- {_t("Device name")}: { props.device.getDisplayName() }
- {_t("Device ID")}: { props.device.deviceId}
- {_t("Device key")}: { key }
+ { _t("Device name") }: { props.device.getDisplayName() }
+ { _t("Device ID") }: { props.device.deviceId }
+ { _t("Device key") }: { key }
- {_t("If it matches, press the verify button below. " +
+ { _t("If it matches, press the verify button below. " +
"If it doesn't, then someone else is intercepting this device " +
- "and you probably want to press the blacklist button instead.")}
+ "and you probably want to press the blacklist button instead.") }
- {_t("In future this verification process will be more sophisticated.")}
+ { _t("In future this verification process will be more sophisticated.") }
);
diff --git a/src/components/views/dialogs/ErrorDialog.js b/src/components/views/dialogs/ErrorDialog.js
index beca107252..97ed47e10f 100644
--- a/src/components/views/dialogs/ErrorDialog.js
+++ b/src/components/views/dialogs/ErrorDialog.js
@@ -63,11 +63,11 @@ export default React.createClass({
- {this.props.description || _t('An error has occurred.')}
+ { this.props.description || _t('An error has occurred.') }
- {this.props.button || _t('OK')}
+ { this.props.button || _t('OK') }
diff --git a/src/components/views/dialogs/KeyShareDialog.js b/src/components/views/dialogs/KeyShareDialog.js
index aed8e6a5af..bc84d52021 100644
--- a/src/components/views/dialogs/KeyShareDialog.js
+++ b/src/components/views/dialogs/KeyShareDialog.js
@@ -126,17 +126,17 @@ export default React.createClass({
return (
-
{text}
+
{ text }
- {_t('Start verification')}
+ { _t('Start verification') }
- {_t('Share without verifying')}
+ { _t('Share without verifying') }
- {_t('Ignore request')}
+ { _t('Ignore request') }
@@ -154,7 +154,7 @@ export default React.createClass({
} else {
content = (
-
{_t('Loading device info...')}
+
{ _t('Loading device info...') }
);
@@ -165,7 +165,7 @@ export default React.createClass({
onFinished={this.props.onFinished}
title={_t('Encryption key request')}
>
- {content}
+ { content }
);
},
diff --git a/src/components/views/dialogs/QuestionDialog.js b/src/components/views/dialogs/QuestionDialog.js
index 22e68e3ac3..339b284e2f 100644
--- a/src/components/views/dialogs/QuestionDialog.js
+++ b/src/components/views/dialogs/QuestionDialog.js
@@ -55,7 +55,7 @@ export default React.createClass({
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
const cancelButton = this.props.hasCancelButton ? (
- {_t("Cancel")}
+ { _t("Cancel") }
) : null;
const buttonClasses = classnames({
@@ -64,18 +64,18 @@ export default React.createClass({
});
return (
- {this.props.description}
+ { this.props.description }
- {this.props.button || _t('OK')}
+ { this.props.button || _t('OK') }
- {this.props.extraButtons}
- {cancelButton}
+ { this.props.extraButtons }
+ { cancelButton }
);
diff --git a/src/components/views/dialogs/SessionRestoreErrorDialog.js b/src/components/views/dialogs/SessionRestoreErrorDialog.js
index 010072e8c6..f404bdd975 100644
--- a/src/components/views/dialogs/SessionRestoreErrorDialog.js
+++ b/src/components/views/dialogs/SessionRestoreErrorDialog.js
@@ -45,10 +45,10 @@ export default React.createClass({
if (SdkConfig.get().bug_report_endpoint_url) {
bugreport = (
- {_tJsx(
+ { _tJsx(
"Otherwise, click here to send a bug report.",
- /(.*?)<\/a>/, (sub) => {sub} ,
- )}
+ /(.*?)<\/a>/, (sub) => { sub } ,
+ ) }
);
}
@@ -57,19 +57,19 @@ export default React.createClass({
-
{_t("We encountered an error trying to restore your previous session. If " +
+
{ _t("We encountered an error trying to restore your previous session. If " +
"you continue, you will need to log in again, and encrypted chat " +
- "history will be unreadable.")}
+ "history will be unreadable.") }
-
{_t("If you have previously used a more recent version of Riot, your session " +
+
{ _t("If you have previously used a more recent version of Riot, your session " +
"may be incompatible with this version. Close this window and return " +
- "to the more recent version.")}
+ "to the more recent version.") }
- {bugreport}
+ { bugreport }
- {_t("Continue anyway")}
+ { _t("Continue anyway") }
diff --git a/src/components/views/dialogs/SetEmailDialog.js b/src/components/views/dialogs/SetEmailDialog.js
index ed5cef2f67..2dd996953d 100644
--- a/src/components/views/dialogs/SetEmailDialog.js
+++ b/src/components/views/dialogs/SetEmailDialog.js
@@ -130,10 +130,10 @@ export default React.createClass({
const emailInput = this.state.emailBusy ? : ;
+ blurToCancel={false}
+ onValueChanged={this.onEmailAddressChanged} />;
return (
;
+ usernameBusyIndicator = ;
} else {
const usernameAvailable = this.state.username &&
this.state.usernameCheckSupport && !this.state.usernameError;
@@ -275,17 +275,17 @@ export default React.createClass({
/(.*?)<\/a>/,
],
[
- (sub) => {this.props.homeserverUrl} ,
- (sub) => {sub} ,
+ (sub) => { this.props.homeserverUrl } ,
+ (sub) => { sub } ,
],
- )}
+ ) }
{ _tJsx(
'If you already have a Matrix account you can log in instead.',
/(.*?)<\/a>/,
- [(sub) => {sub} ],
- )}
+ [(sub) => { sub } ],
+ ) }
{ auth }
{ authErrorIndicator }
diff --git a/src/components/views/dialogs/TextInputDialog.js b/src/components/views/dialogs/TextInputDialog.js
index 673be42030..c924da7745 100644
--- a/src/components/views/dialogs/TextInputDialog.js
+++ b/src/components/views/dialogs/TextInputDialog.js
@@ -65,10 +65,10 @@ export default React.createClass({
>
@@ -76,7 +76,7 @@ export default React.createClass({
{ _t("Cancel") }
- {this.props.button}
+ { this.props.button }
diff --git a/src/components/views/elements/AppPermission.js b/src/components/views/elements/AppPermission.js
index 3dc7e86d75..f1117fd5aa 100644
--- a/src/components/views/elements/AppPermission.js
+++ b/src/components/views/elements/AppPermission.js
@@ -50,16 +50,16 @@ export default class AppPermission extends React.Component {
let e2eWarningText;
if (this.props.isRoomEncrypted) {
e2eWarningText =
- {_t('NOTE: Apps are not end-to-end encrypted')} ;
+ { _t('NOTE: Apps are not end-to-end encrypted') } ;
}
return (
-
+
- {_t('Do you want to load widget from URL:')} {this.state.curlBase}
- {e2eWarningText}
+ { _t('Do you want to load widget from URL:') } { this.state.curlBase }
+ { e2eWarningText }
-
+
);
} else if (this.state.hasPermissionToLoad == true) {
@@ -312,19 +312,19 @@ export default React.createClass({
return (
- {this.formatAppTileName()}
+ { this.formatAppTileName() }
- {/* Edit widget */}
- {showEditButton && }
+ /> }
- {/* Delete widget */}
+ { /* Delete widget */ }
- {appTileBody}
+ { appTileBody }
);
},
diff --git a/src/components/views/elements/AppWarning.js b/src/components/views/elements/AppWarning.js
index 944f1422e6..f4015ae5b7 100644
--- a/src/components/views/elements/AppWarning.js
+++ b/src/components/views/elements/AppWarning.js
@@ -6,10 +6,10 @@ const AppWarning = (props) => {
return (
-
+
- {props.errorMsg}
+ { props.errorMsg }
);
diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js
index 0628c6fc8c..11dbcbc021 100644
--- a/src/components/views/elements/Flair.js
+++ b/src/components/views/elements/Flair.js
@@ -238,11 +238,11 @@ export default class Flair extends React.Component {
return
;
}
const avatars = this.state.profiles.map((profile, index) => {
- return ;
+ return ;
});
return (
- {avatars}
+ { avatars }
);
}
diff --git a/src/components/views/elements/ManageIntegsButton.js b/src/components/views/elements/ManageIntegsButton.js
index 68f67cfad5..17dbbeee62 100644
--- a/src/components/views/elements/ManageIntegsButton.js
+++ b/src/components/views/elements/ManageIntegsButton.js
@@ -80,7 +80,7 @@ export default class ManageIntegsButton extends React.Component {
});
if (this.state.scalarError && !this.scalarClient.hasCredentials()) {
- integrationsWarningTriangle = ;
+ integrationsWarningTriangle = ;
// Popup shown when hovering over integrationsButton_error (via CSS)
integrationsErrorPopup = (
@@ -90,8 +90,8 @@ export default class ManageIntegsButton extends React.Component {
}
integrationsButton = (
-
-
+
+
{ integrationsWarningTriangle }
{ integrationsErrorPopup }
diff --git a/src/components/views/elements/MessageSpinner.js b/src/components/views/elements/MessageSpinner.js
index bc0a326338..500c919d45 100644
--- a/src/components/views/elements/MessageSpinner.js
+++ b/src/components/views/elements/MessageSpinner.js
@@ -26,8 +26,8 @@ module.exports = React.createClass({
const msg = this.props.msg || "Loading...";
return (
-
{msg}
-
+
{ msg }
+
);
},
diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js
index 214abc2329..51ae85ba5a 100644
--- a/src/components/views/elements/Pill.js
+++ b/src/components/views/elements/Pill.js
@@ -167,7 +167,7 @@ const Pill = React.createClass({
userId = member.userId;
linkText = member.rawDisplayName.replace(' (IRC)', ''); // FIXME when groups are done
if (this.props.shouldShowPillAvatar) {
- avatar = ;
+ avatar = ;
}
pillClass = 'mx_UserPill';
href = null;
@@ -180,7 +180,7 @@ const Pill = React.createClass({
if (room) {
linkText = (room ? getDisplayAliasForRoom(room) : null) || resource;
if (this.props.shouldShowPillAvatar) {
- avatar = ;
+ avatar = ;
}
pillClass = 'mx_RoomPill';
}
@@ -195,12 +195,12 @@ const Pill = React.createClass({
if (this.state.pillType) {
return this.props.inMessage ?
- {avatar}
- {linkText}
+ { avatar }
+ { linkText }
:
- {avatar}
- {linkText}
+ { avatar }
+ { linkText }
;
} else {
// Deliberately render nothing if the URL isn't recognised
diff --git a/src/components/views/elements/TruncatedList.js b/src/components/views/elements/TruncatedList.js
index 1801b1c3ab..1a674eef65 100644
--- a/src/components/views/elements/TruncatedList.js
+++ b/src/components/views/elements/TruncatedList.js
@@ -46,7 +46,7 @@ module.exports = React.createClass({
truncateAt: 2,
createOverflowElement: function(overflowCount, totalCount) {
return (
- {_t("And %(count)s more...", {count: overflowCount})}
+ { _t("And %(count)s more...", {count: overflowCount}) }
);
},
};
@@ -93,8 +93,8 @@ module.exports = React.createClass({
return (
- {childNodes}
- {overflowNode}
+ { childNodes }
+ { overflowNode }
);
},
diff --git a/src/components/views/groups/GroupInviteTile.js b/src/components/views/groups/GroupInviteTile.js
index b1578888bc..07c0bcf6b9 100644
--- a/src/components/views/groups/GroupInviteTile.js
+++ b/src/components/views/groups/GroupInviteTile.js
@@ -50,7 +50,7 @@ export default React.createClass({
className="mx_GroupInviteTile_name"
dir="auto"
>
- {this.props.group.name}
+ { this.props.group.name }
;
const badge = !
;
@@ -58,11 +58,11 @@ export default React.createClass({
return (
- {av}
+ { av }
- {label}
- {badge}
+ { label }
+ { badge }
);
diff --git a/src/components/views/groups/GroupMemberInfo.js b/src/components/views/groups/GroupMemberInfo.js
index 499fb43ccb..6f1a370f26 100644
--- a/src/components/views/groups/GroupMemberInfo.js
+++ b/src/components/views/groups/GroupMemberInfo.js
@@ -128,7 +128,7 @@ module.exports = withMatrixClient(React.createClass({
kickButton = (
- {_t('Remove from group')}
+ { _t('Remove from group') }
);
@@ -143,11 +143,11 @@ module.exports = withMatrixClient(React.createClass({
if (kickButton || adminButton) {
adminTools =
-
{_t("Admin Tools")}
+
{ _t("Admin Tools") }
- {kickButton}
- {adminButton}
+ { kickButton }
+ { adminButton }
;
}
@@ -173,13 +173,13 @@ module.exports = withMatrixClient(React.createClass({
-
+
- {avatar}
+ { avatar }
- {groupMemberName}
+ { groupMemberName }
diff --git a/src/components/views/groups/GroupMemberList.js b/src/components/views/groups/GroupMemberList.js
index fdaf815fe1..6a257259f9 100644
--- a/src/components/views/groups/GroupMemberList.js
+++ b/src/components/views/groups/GroupMemberList.js
@@ -135,7 +135,7 @@ export default withMatrixClient(React.createClass({
);
@@ -146,7 +146,7 @@ export default withMatrixClient(React.createClass({
- {this.makeGroupMemberTiles(this.state.searchQuery)}
+ { this.makeGroupMemberTiles(this.state.searchQuery) }
diff --git a/src/components/views/groups/GroupRoomList.js b/src/components/views/groups/GroupRoomList.js
index 0a9dbb4d76..39ff3e4a07 100644
--- a/src/components/views/groups/GroupRoomList.js
+++ b/src/components/views/groups/GroupRoomList.js
@@ -123,7 +123,7 @@ export default React.createClass({
);
@@ -134,7 +134,7 @@ export default React.createClass({
- {this.makeGroupRoomTiles(this.state.searchQuery)}
+ { this.makeGroupRoomTiles(this.state.searchQuery) }
diff --git a/src/components/views/groups/GroupRoomTile.js b/src/components/views/groups/GroupRoomTile.js
index 771e3d9c4f..452f862d16 100644
--- a/src/components/views/groups/GroupRoomTile.js
+++ b/src/components/views/groups/GroupRoomTile.js
@@ -71,10 +71,10 @@ const GroupRoomTile = React.createClass({
return (
- {av}
+ { av }
- {name}
+ { name }
);
diff --git a/src/components/views/login/LoginFooter.js b/src/components/views/login/LoginFooter.js
index 8bdec71685..392d36e288 100644
--- a/src/components/views/login/LoginFooter.js
+++ b/src/components/views/login/LoginFooter.js
@@ -25,7 +25,7 @@ module.exports = React.createClass({
render: function() {
return (
);
},
diff --git a/src/components/views/messages/SenderProfile.js b/src/components/views/messages/SenderProfile.js
index d9ab00e03f..0311239e7a 100644
--- a/src/components/views/messages/SenderProfile.js
+++ b/src/components/views/messages/SenderProfile.js
@@ -32,9 +32,9 @@ export default function SenderProfile(props) {
return (
- {name || ''}
- {props.enableFlair ? : null}
- {props.aux ? {props.aux} : null}
+ { name || '' }
+ { props.enableFlair ? : null }
+ { props.aux ? { props.aux } : null }
);
}
diff --git a/src/components/views/messages/UnknownBody.js b/src/components/views/messages/UnknownBody.js
index 346d157e24..083d7ac12e 100644
--- a/src/components/views/messages/UnknownBody.js
+++ b/src/components/views/messages/UnknownBody.js
@@ -31,7 +31,7 @@ module.exports = React.createClass({
const text = this.props.mxEvent.getContent().body;
return (
- {text}
+ { text }
);
},
diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js
index 536259ae91..1c9296228d 100644
--- a/src/components/views/rooms/AppsDrawer.js
+++ b/src/components/views/rooms/AppsDrawer.js
@@ -231,16 +231,16 @@ module.exports = React.createClass({
"mx_AddWidget_button"
}
title={_t('Add a widget')}>
- [+] {_t('Add a widget')}
+ [+] { _t('Add a widget') }
;
}
return (
- {apps}
+ { apps }
- {this._canUserModify() && addWidget}
+ { this._canUserModify() && addWidget }
);
},
diff --git a/src/components/views/rooms/ForwardMessage.js b/src/components/views/rooms/ForwardMessage.js
index 3c97128a02..67e55101e8 100644
--- a/src/components/views/rooms/ForwardMessage.js
+++ b/src/components/views/rooms/ForwardMessage.js
@@ -61,7 +61,7 @@ module.exports = React.createClass({
render: function() {
return (
-
{_t('Please select the destination room for this message')}
+ { _t('Please select the destination room for this message') }
);
},
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js
index afba4eba1e..42cbb90cd9 100644
--- a/src/components/views/rooms/RoomHeader.js
+++ b/src/components/views/rooms/RoomHeader.js
@@ -186,18 +186,18 @@ module.exports = React.createClass({
saveButton = (
- {_t("Save")}
+ { _t("Save") }
);
}
if (this.props.onCancelClick) {
- cancelButton = ;
+ cancelButton = ;
}
if (this.props.saving) {
const Spinner = sdk.getComponent("elements.Spinner");
- spinner =
;
+ spinner =
;
}
if (canSetRoomName) {
@@ -254,7 +254,7 @@ module.exports = React.createClass({
}
if (topic) {
topicElement =
- { topic }
;
+ { topic }
;
}
}
@@ -262,16 +262,16 @@ module.exports = React.createClass({
if (canSetRoomAvatar) {
roomAvatar = (
-
);
@@ -286,7 +286,7 @@ module.exports = React.createClass({
if (this.props.onSettingsClick) {
settingsButton =
-
+
;
}
@@ -301,24 +301,24 @@ module.exports = React.createClass({
let forgetButton;
if (this.props.onForgetClick) {
forgetButton =
-
-
+
+
;
}
let searchButton;
if (this.props.onSearchClick && this.props.inRoom) {
searchButton =
-
-
+
+
;
}
let rightPanelButtons;
if (this.props.collapsedRhs) {
rightPanelButtons =
-
-
+
+
;
}
@@ -342,7 +342,7 @@ module.exports = React.createClass({
}
return (
-
+
@@ -353,10 +353,10 @@ module.exports = React.createClass({
{ topicElement }
- {spinner}
- {saveButton}
- {cancelButton}
- {rightRow}
+ { spinner }
+ { saveButton }
+ { cancelButton }
+ { rightRow }
);
diff --git a/src/components/views/rooms/SimpleRoomHeader.js b/src/components/views/rooms/SimpleRoomHeader.js
index 8c06d71b6f..c47d219624 100644
--- a/src/components/views/rooms/SimpleRoomHeader.js
+++ b/src/components/views/rooms/SimpleRoomHeader.js
@@ -26,7 +26,7 @@ export function CancelButton(props) {
return (
+ width="18" height="18" alt={_t("Cancel")} />
);
}
diff --git a/src/components/views/voip/CallView.js b/src/components/views/voip/CallView.js
index e669f7e0a6..37d111be93 100644
--- a/src/components/views/voip/CallView.js
+++ b/src/components/views/voip/CallView.js
@@ -129,17 +129,17 @@ module.exports = React.createClass({
if (this.state.call && this.state.call.type === "voice" && this.props.showVoice) {
const callRoom = MatrixClientPeg.get().getRoom(this.state.call.roomId);
voice = (
-
- {_t("Active call (%(roomName)s)", {roomName: callRoom.name})}
+
+ { _t("Active call (%(roomName)s)", {roomName: callRoom.name}) }
);
}
return (
-
{ voice }
diff --git a/src/components/views/voip/IncomingCallBox.js b/src/components/views/voip/IncomingCallBox.js
index c5934b74dc..c12924791a 100644
--- a/src/components/views/voip/IncomingCallBox.js
+++ b/src/components/views/voip/IncomingCallBox.js
@@ -62,17 +62,17 @@ module.exports = React.createClass({
- {incomingCallText}
+ { incomingCallText }
- {_t("Decline")}
+ { _t("Decline") }
- {_t("Accept")}
+ { _t("Accept") }
diff --git a/src/components/views/voip/VideoView.js b/src/components/views/voip/VideoView.js
index 6ebf2078c1..8f062d27ae 100644
--- a/src/components/views/voip/VideoView.js
+++ b/src/components/views/voip/VideoView.js
@@ -110,13 +110,13 @@ module.exports = React.createClass({
const maxVideoHeight = fullscreenElement ? null : this.props.maxHeight;
return (
-