[PE mobile] Edited Presentation About
This commit is contained in:
parent
98d81f5071
commit
2f294ea4cd
|
@ -1,6 +1,6 @@
|
||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import { observer, inject } from "mobx-react";
|
import { observer, inject } from "mobx-react";
|
||||||
import { Page, Navbar } from "framework7-react";
|
import { Page, Navbar, Link } from "framework7-react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
const PagePresentationAbout = props => {
|
const PagePresentationAbout = props => {
|
||||||
|
@ -9,23 +9,13 @@ const PagePresentationAbout = props => {
|
||||||
const store = props.storeAppOptions;
|
const store = props.storeAppOptions;
|
||||||
const isCanBranding = store.canBranding;
|
const isCanBranding = store.canBranding;
|
||||||
const licInfo = isCanBranding ? store.customization : null;
|
const licInfo = isCanBranding ? store.customization : null;
|
||||||
let customer;
|
const customer = licInfo ? licInfo.customer : null;
|
||||||
let nameCustomer;
|
const nameCustomer = customer ? customer.name : null;
|
||||||
let addressCustomer;
|
const mailCustomer = customer ? customer.mail : null;
|
||||||
let mailCustomer;
|
const addressCustomer = customer ? customer.address : null;
|
||||||
let urlCustomer;
|
const urlCustomer = customer ? customer.www : null;
|
||||||
let infoCustomer;
|
const infoCustomer = customer ? customer.info : null;
|
||||||
let logoCustomer;
|
const logoCustomer = customer ? customer.logo : null;
|
||||||
|
|
||||||
if(licInfo) {
|
|
||||||
customer = licInfo.customer;
|
|
||||||
nameCustomer = customer.name;
|
|
||||||
addressCustomer = customer.address;
|
|
||||||
mailCustomer = customer.mail;
|
|
||||||
urlCustomer = customer.www;
|
|
||||||
infoCustomer = customer.info;
|
|
||||||
logoCustomer = customer.logo;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(store);
|
console.log(store);
|
||||||
console.log(isCanBranding);
|
console.log(isCanBranding);
|
||||||
|
@ -34,7 +24,7 @@ const PagePresentationAbout = props => {
|
||||||
<Page className="about">
|
<Page className="about">
|
||||||
<Navbar title={_t.textAbout} backLink={_t.textBack} />
|
<Navbar title={_t.textAbout} backLink={_t.textBack} />
|
||||||
<div className="content-block">
|
<div className="content-block">
|
||||||
{licInfo && typeof licInfo == 'object' && typeof(licInfo.customer)=='object' ? null : (
|
{licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? null : (
|
||||||
<div className="logo"></div>
|
<div className="logo"></div>
|
||||||
)}
|
)}
|
||||||
{logoCustomer && logoCustomer.length ? (
|
{logoCustomer && logoCustomer.length ? (
|
||||||
|
@ -54,27 +44,27 @@ const PagePresentationAbout = props => {
|
||||||
{addressCustomer && addressCustomer.length ? (
|
{addressCustomer && addressCustomer.length ? (
|
||||||
<p>
|
<p>
|
||||||
<label>{_t.textAddress}</label>
|
<label>{_t.textAddress}</label>
|
||||||
<a id="settings-about-address" className="external" href="#">{addressCustomer}</a>
|
<Link id="settings-about-address" className="external">{addressCustomer}</Link>
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
{mailCustomer && mailCustomer.length ? (
|
{mailCustomer && mailCustomer.length ? (
|
||||||
<p>
|
<p>
|
||||||
<label>{_t.textEmail}</label>
|
<label>{_t.textEmail}</label>
|
||||||
<a id="settings-about-email" className="external" target="_blank" href={"mailto:"+mailCustomer}>{mailCustomer}</a>
|
<Link id="settings-about-email" className="external" target="_blank" href={"mailto:"+mailCustomer}>{mailCustomer}</Link>
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
{licInfo && typeof licInfo == 'object' && typeof(licInfo.customer)=='object' ? null : (
|
{licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? null : (
|
||||||
<p>
|
<p>
|
||||||
<label>{_t.textTel}</label>
|
<label>{_t.textTel}</label>
|
||||||
<a id="settings-about-tel" className="external" target="_blank" href="tel:+37163399867">+371 633-99867</a>
|
<Link id="settings-about-tel" className="external" target="_blank" href="tel:+37163399867">+371 633-99867</Link>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{urlCustomer && urlCustomer.length ? (
|
{urlCustomer && urlCustomer.length ? (
|
||||||
<p>
|
<p>
|
||||||
<a id="settings-about-url" className="external" target="_blank"
|
<Link id="settings-about-url" className="external" target="_blank"
|
||||||
href={!/^https?:\/{2}/i.test(urlCustomer) ? "http:\/\/" : '' + urlCustomer}>
|
href={!/^https?:\/{2}/i.test(urlCustomer) ? "http:\/\/" : '' + urlCustomer}>
|
||||||
{urlCustomer}
|
{urlCustomer}
|
||||||
</a>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
{infoCustomer && infoCustomer.length ? (
|
{infoCustomer && infoCustomer.length ? (
|
||||||
|
@ -83,7 +73,7 @@ const PagePresentationAbout = props => {
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
{licInfo && typeof licInfo == 'object' && typeof(licInfo.customer)=='object' ? (
|
{licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? (
|
||||||
<div className="content-block" id="settings-about-licensor">
|
<div className="content-block" id="settings-about-licensor">
|
||||||
<div className="content-block-inner"></div>
|
<div className="content-block-inner"></div>
|
||||||
<p>
|
<p>
|
||||||
|
@ -91,7 +81,7 @@ const PagePresentationAbout = props => {
|
||||||
</p>
|
</p>
|
||||||
<h3 className="vendor">Ascensio System SIA</h3>
|
<h3 className="vendor">Ascensio System SIA</h3>
|
||||||
<p>
|
<p>
|
||||||
<a className="external" target="_blank" href="www.onlyoffice.com">www.onlyoffice.com</a>
|
<Link className="external" target="_blank" href="www.onlyoffice.com">www.onlyoffice.com</Link>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
Loading…
Reference in a new issue