Convert Vector skin react components to Typescript
parent
f0069c6ebd
commit
a8429f3e1d
|
@ -24,7 +24,7 @@ export default class VectorEmbeddedPage extends EmbeddedPage {
|
||||||
static replaces = 'EmbeddedPage';
|
static replaces = 'EmbeddedPage';
|
||||||
|
|
||||||
// we're overriding the base component here, for Element-specific tweaks
|
// we're overriding the base component here, for Element-specific tweaks
|
||||||
translate(s) {
|
translate(s: string) {
|
||||||
s = sanitizeHtml(_t(s));
|
s = sanitizeHtml(_t(s));
|
||||||
// ugly fix for https://github.com/vector-im/element-web/issues/4243
|
// ugly fix for https://github.com/vector-im/element-web/issues/4243
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
|
@ -16,16 +16,11 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
|
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
|
||||||
|
|
||||||
export default class VectorAuthHeaderLogo extends React.PureComponent {
|
export default class VectorAuthHeaderLogo extends React.PureComponent {
|
||||||
static replaces = 'AuthHeaderLogo'
|
static replaces = 'AuthHeaderLogo'
|
||||||
|
|
||||||
static propTypes = {
|
|
||||||
icon: PropTypes.string,
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const brandingConfig = SdkConfig.get().branding;
|
const brandingConfig = SdkConfig.get().branding;
|
||||||
let logoUrl = "themes/element/img/logos/element-logo.svg";
|
let logoUrl = "themes/element/img/logos/element-logo.svg";
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React, { CSSProperties } from 'react';
|
||||||
import * as sdk from 'matrix-react-sdk/src/index';
|
import * as sdk from 'matrix-react-sdk/src/index';
|
||||||
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
|
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
|
||||||
|
|
||||||
|
@ -48,12 +48,12 @@ export default class VectorAuthPage extends React.PureComponent {
|
||||||
background: `center/cover fixed url(${VectorAuthPage.getWelcomeBackgroundUrl()})`,
|
background: `center/cover fixed url(${VectorAuthPage.getWelcomeBackgroundUrl()})`,
|
||||||
};
|
};
|
||||||
|
|
||||||
const modalStyle = {
|
const modalStyle: CSSProperties = {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
background: 'initial',
|
background: 'initial',
|
||||||
};
|
};
|
||||||
|
|
||||||
const blurStyle = {
|
const blurStyle: CSSProperties = {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
|
@ -63,7 +63,7 @@ export default class VectorAuthPage extends React.PureComponent {
|
||||||
background: pageStyle.background,
|
background: pageStyle.background,
|
||||||
};
|
};
|
||||||
|
|
||||||
const modalContentStyle = {
|
const modalContentStyle: CSSProperties = {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
background: 'rgba(255, 255, 255, 0.59)',
|
background: 'rgba(255, 255, 255, 0.59)',
|
Loading…
Reference in New Issue