Skip to content

TagSpaces is an offline, open source, document manager with tagging support

adjusting custom logo functionality

Ilian Sapundshievb0819486b1ab
diff --git a/app/components/CustomLogo.js b/app/components/CustomLogo.js
index 16a90c74c..74b41e43f 100644
--- a/app/components/CustomLogo.js
+++ b/app/components/CustomLogo.js
@@ -23,21 +23,26 @@ import { bindActionCreators } from 'redux';
import IconButton from '@material-ui/core/IconButton';
import { Pro } from '../pro';
import TextLogoIcon from '../assets/images/text-logo.svg';
-// import CustomLogoIcon from '../assets/images/custom-logo.svg';
import { actions as AppActions } from '../reducers/app';
type Props = {
toggleAboutDialog: () => void
};
+let logo = Pro ? Pro.TextLogoIcon : TextLogoIcon;
+// logo = 'assets/images/custom-logo.svg';
+const externalLogo = window.ExtLogoURL || false;
+if (externalLogo) {
+ logo = externalLogo;
+}
+
const CustomLogo = (props: Props) => (
<IconButton
style={{ height: 50, padding: 0, marginBottom: 15 }}
data-tid="aboutTagSpaces"
onClick={props.toggleAboutDialog}
>
- <img style={{ height: 40 }} src={Pro ? Pro.TextLogoIcon : TextLogoIcon} alt="TagSpaces Logo" />
- {/* <img style={{ height: 40 }} src={CustomLogoIcon} alt="Custom Logo" /> */}
+ <img style={{ maxHeight: 50 }} src={logo} alt="TagSpaces Logo" />
</IconButton>
);