TagSpaces is an offline, open source, document manager with tagging support
fix integration PRO components
Ilian Sapundshievdd802a30ca65
diff --git a/app/components/dialogs/EditEntryTagDialog.js b/app/components/dialogs/EditEntryTagDialog.jsindex 9cc936f6f..1b706645b 100644--- a/app/components/dialogs/EditEntryTagDialog.js+++ b/app/components/dialogs/EditEntryTagDialog.js@@ -52,6 +52,9 @@ type Props = {open: boolean};+const GeoTagEditor = Pro && Pro.UI ? Pro.UI.GeoTagEditor : false;+const DatePeriodTagEditor = Pro && Pro.UI ? Pro.UI.DatePeriodTagEditor : false;+const EditEntryTagDialog = (props: Props) => {const [disableConfirmButton, setDisableConfirmButton] = useState(true);const [errorTag, setErrorTag] = useState(false);@@ -88,12 +91,12 @@ const EditEntryTagDialog = (props: Props) => {}function renderContent() {- const showGeoEditor = Pro && Pro.UI && Pro.UI.GeoTagEditor && isPlusCode(title);- const showDatePeriodEditor = false; // Pro && Pro.UI && Pro.UI.DatePeriodTagEditor && isDateTimeTag(title);+ const showGeoEditor = GeoTagEditor && isPlusCode(title);+ const showDatePeriodEditor = false; // DatePeriodTagEditor && isDateTimeTag(title);return (<DialogContent data-tid="editEntryTagDialog" className={props.classes.root}>- { showGeoEditor && <Pro.UI.GeoTagEditor key={title} geoTag={title} onChange={setTitle} /> }- { showDatePeriodEditor && <Pro.UI.DatePeriodTagEditor key={title} datePeriodTag={title} onChange={setTitle} /> }+ { showGeoEditor && <GeoTagEditor key={title} geoTag={title} onChange={setTitle} /> }+ { showDatePeriodEditor && <DatePeriodTagEditor key={title} datePeriodTag={title} onChange={setTitle} /> }<FormControlfullWidth={true}error={errorTag}