2015-12-01 17:27:23 +01:00
|
|
|
/*
|
2016-01-07 05:17:56 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-01-22 01:40:34 +01:00
|
|
|
Copyright 2019 New Vector Ltd
|
2015-12-01 17:27:23 +01:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-09-30 19:27:59 +02:00
|
|
|
import * as React from 'react';
|
2019-12-20 02:47:40 +01:00
|
|
|
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
|
2017-04-21 18:03:31 +02:00
|
|
|
|
2019-02-11 17:14:34 +01:00
|
|
|
export default class VectorAuthHeaderLogo extends React.PureComponent {
|
2022-03-25 06:41:19 +01:00
|
|
|
public render() {
|
2022-03-18 17:12:44 +01:00
|
|
|
const brandingConfig = SdkConfig.getObject("branding");
|
|
|
|
const logoUrl = brandingConfig?.get("auth_header_logo_url") ?? "themes/element/img/logos/element-logo.svg";
|
2019-02-11 17:23:22 +01:00
|
|
|
|
2015-12-01 17:27:23 +01:00
|
|
|
return (
|
2022-07-28 15:00:34 +02:00
|
|
|
<aside className="mx_AuthHeaderLogo">
|
2020-07-10 20:09:52 +02:00
|
|
|
<img src={logoUrl} alt="Element" />
|
2022-07-28 15:00:34 +02:00
|
|
|
</aside>
|
2015-12-01 17:27:23 +01:00
|
|
|
);
|
2019-02-11 17:14:34 +01:00
|
|
|
}
|
|
|
|
}
|