web-apps/apps/common/mobile/lib/view/SharingSettings.jsx

27 lines
1.1 KiB
React
Raw Normal View History

2022-07-29 19:25:44 +00:00
import React, { Component, useEffect } from 'react';
import { observer, inject } from "mobx-react";
import { f7, Popover, List, ListItem, Navbar, NavRight, Sheet, BlockTitle, Page, View, Icon, Link } from 'framework7-react';
import { useTranslation } from 'react-i18next';
import { Device } from "../../utils/device";
const SharingSettings = props => {
const { t } = useTranslation();
2022-11-18 11:45:09 +00:00
const storeAppOptions = props.storeAppOptions;
const sharingSettingsUrl = storeAppOptions.sharingSettingsUrl;
2022-07-29 19:25:44 +00:00
const _t = t('Common.Collaboration', {returnObjects: true});
2022-11-28 13:39:16 +00:00
function resizeHeightIframe(iFrame) {
iFrame.height = iFrame.contentWindow.document.body.scrollHeight;
}
2022-07-29 19:25:44 +00:00
return (
<Page>
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
<div id="sharing-placeholder" className="sharing-placeholder">
2022-11-28 13:39:16 +00:00
<iframe width="100%" frameBorder={0} scrolling="0" align="top" src={sharingSettingsUrl} onLoad={resizeHeightIframe(this)}></iframe>
2022-07-29 19:25:44 +00:00
</div>
</Page>
)
}
2022-11-18 11:45:09 +00:00
export default inject("storeAppOptions")(observer(SharingSettings));