diff --git a/src/components/helpers/sharemodal/ShareModal.jsx b/src/components/helpers/sharemodal/ShareModal.jsx
index 2334f129..a3297cd1 100644
--- a/src/components/helpers/sharemodal/ShareModal.jsx
+++ b/src/components/helpers/sharemodal/ShareModal.jsx
@@ -8,7 +8,7 @@ import { toast } from 'react-toastify';
import './sharemodal.scss';
-export default function ShareModal({ modalClose, data, type }) {
+export default function ShareModal({ modalClose, data }) {
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
const url = variables.constants.MARKETPLACE_URL + '/share/' + btoa(data.api_name);
@@ -17,6 +17,10 @@ export default function ShareModal({ modalClose, data, type }) {
toast('Link copied!');
};
+ if (!data.data) {
+ data.data.name = 'this image';
+ }
+
return (
@@ -33,7 +37,7 @@ export default function ShareModal({ modalClose, data, type }) {
onClick={() =>
window
.open(
- `https://twitter.com/intent/tweet?text=Check out ${data.data.name} on @getmue marketplace: ${data}`,
+ `https://twitter.com/intent/tweet?text=Check out ${data.data.name} on @getmue: ${data}`,
'_blank',
)
.focus()
@@ -56,7 +60,7 @@ export default function ShareModal({ modalClose, data, type }) {
onClick={() =>
window
.open(
- 'mailto:email@example.com?subject=Check%20out%20this%20Mue%20addon!&body=' +
+ 'mailto:email@example.com?subject=Check%20out%20this%20%on%20%Mue!&body=' +
data.data.name +
'on Mue: ' +
data,
@@ -68,9 +72,6 @@ export default function ShareModal({ modalClose, data, type }) {
- {/* i think that wechat has no actual share function outside of qrcodes, as the only example of a share to wechat button i've seen used this api
- * this requires some investigating before we deploy to production
- */}
diff --git a/src/components/modals/main/marketplace/Item.jsx b/src/components/modals/main/marketplace/Item.jsx
index 75311903..ed839f29 100644
--- a/src/components/modals/main/marketplace/Item.jsx
+++ b/src/components/modals/main/marketplace/Item.jsx
@@ -243,13 +243,6 @@ export default class Item extends PureComponent {
) : null}
{warningHTML}
- {/*
*/}
diff --git a/src/components/modals/main/marketplace/sections/Added.jsx b/src/components/modals/main/marketplace/sections/Added.jsx
index 7f8d7523..173fae85 100644
--- a/src/components/modals/main/marketplace/sections/Added.jsx
+++ b/src/components/modals/main/marketplace/sections/Added.jsx
@@ -128,11 +128,6 @@ export default class Added extends PureComponent {
return (
- {/*
-
{this.getMessage('modals.main.addons.empty.title')}
-
- {this.getMessage('modals.main.addons.empty.description')}
- */}
{this.getMessage('modals.main.addons.empty.title')}
diff --git a/src/components/modals/main/marketplace/sections/Create.jsx b/src/components/modals/main/marketplace/sections/Create.jsx
index 12371084..3c4b206b 100644
--- a/src/components/modals/main/marketplace/sections/Create.jsx
+++ b/src/components/modals/main/marketplace/sections/Create.jsx
@@ -224,14 +224,6 @@ export default class Create extends PureComponent {
onInput={(e) => setMetadata(e.target.value, 'name')}
/>
- {/*
- setMetadata(e.target.value, 'version')}
- />
- */}
{getMessage('modals.main.marketplace.product.version')}
diff --git a/src/components/modals/main/marketplace/sections/Marketplace.jsx b/src/components/modals/main/marketplace/sections/Marketplace.jsx
index aba1f8f7..cc61a6a6 100644
--- a/src/components/modals/main/marketplace/sections/Marketplace.jsx
+++ b/src/components/modals/main/marketplace/sections/Marketplace.jsx
@@ -310,7 +310,6 @@ export default class Marketplace extends PureComponent {
) : (
Marketplace
)}
- {/*{featured()}*/}
{this.props.title}
- {/*{Number(this.state.value / 100)}x */}
{Number(this.state.value)}
diff --git a/src/components/modals/main/settings/sections/Appearance.jsx b/src/components/modals/main/settings/sections/Appearance.jsx
index e9cb048c..37ec6335 100644
--- a/src/components/modals/main/settings/sections/Appearance.jsx
+++ b/src/components/modals/main/settings/sections/Appearance.jsx
@@ -132,11 +132,6 @@ export default function AppearanceSettings() {
/>
- {/*{getMessage('modals.main.settings.sections.appearance.accessibility.title')}
-
-
- */}
- {/*{getMessage('modals.main.settings.sections.stats.title')}
- */}
{getMessage('modals.main.settings.sections.stats.title')}
- {/*
this.uploadCustomBackground()}>{this.getMessage('modals.main.settings.sections.background.source.add_background')} */}
Drop to upload
@@ -200,12 +199,6 @@ export default class CustomSettings extends PureComponent {
{this.getMessage('modals.main.settings.sections.background.source.add_url')}{' '}
- {/*
- {this.getMessage('modals.main.settings.sections.background.source.custom_background')}{' '}
-
- {this.getMessage('modals.main.settings.buttons.reset')}
-
- */}
{
variables.stats.postEvent('feature', 'Background download');
};
-// todo: copy link to unsplash/pexels page not image url
-const copyImage = (info) => {
- variables.stats.postEvent('feature', 'Background copied');
- navigator.clipboard.writeText(info.url);
- toast('Background copied');
-};
-
export default function PhotoInformation({ info, url, api }) {
const [width, setWidth] = useState(0);
const [height, setHeight] = useState(0);
@@ -63,7 +56,6 @@ export default function PhotoInformation({ info, url, api }) {
'widgets.background.unsplash',
);
const pexels = variables.language.getMessage(variables.languagecode, 'widgets.background.pexels');
- const photographer = info.credit.split(` ${unsplash}`)[0].split(` ${pexels}`);
let credit = info.credit;
let photo = variables.language.getMessage(variables.languagecode, 'widgets.background.credit');
@@ -121,22 +113,18 @@ export default function PhotoInformation({ info, url, api }) {
// info is still there because we want the favourite button to work
if (localStorage.getItem('photoInformation') === 'false') {
return (
-
-
- {photo} {credit}
-
-
- {info.location || 'N/A'}
- {info.camera || 'N/A'}
-
- {width}x{height}
-
-
+
+ {credit}
+ {info.location || 'N/A'}
+ {info.camera || 'N/A'}
+
+ {width}x{height}
+
);
}
- const downloadEnabled =
+ /*const downloadEnabled =
localStorage.getItem('downloadbtn') === 'true' && !info.offline && !info.photographerURL && api;
const downloadBackground = () => {
if (downloadEnabled) {
@@ -153,7 +141,7 @@ export default function PhotoInformation({ info, url, api }) {
element.style.display = 'none';
}
}
- };
+ };*/
let showingPhotoMap = false;
const photoMap = () => {
@@ -209,7 +197,7 @@ export default function PhotoInformation({ info, url, api }) {
ariaHideApp={false}
onRequestClose={() => openShareModal(false)}
>
-
openShareModal(false)} />
+ openShareModal(false)} />
{localStorage.getItem('widgetStyle') === 'legacy' && (
diff --git a/src/components/widgets/navbar/Navbar.jsx b/src/components/widgets/navbar/Navbar.jsx
index 48c4d5fa..a51cfd30 100644
--- a/src/components/widgets/navbar/Navbar.jsx
+++ b/src/components/widgets/navbar/Navbar.jsx
@@ -33,7 +33,11 @@ export default class Navbar extends PureComponent {
this.refreshEnabled = localStorage.getItem('refresh');
this.refreshValue = localStorage.getItem('refreshOption');
this.forceUpdate();
- this.setZoom();
+ try {
+ this.setZoom();
+ } catch (e) {
+
+ }
}
});
@@ -104,13 +108,6 @@ export default class Navbar extends PureComponent {
- {/*
- New Update
-
- The newest update includes a lot of cheese plus urmm donate to david ralph on github.
-
- Learn More
-
*/}
);
diff --git a/src/components/widgets/navbar/scss/index.scss b/src/components/widgets/navbar/scss/index.scss
index 67fc1be4..66a40d08 100644
--- a/src/components/widgets/navbar/scss/index.scss
+++ b/src/components/widgets/navbar/scss/index.scss
@@ -71,17 +71,4 @@
right: 1rem;
display: flex;
flex-flow: column;
- .notification {
- @extend %basic;
- display: flex;
- flex-flow: column;
- gap: 15px;
- padding: 15px;
- text-align: left;
- width: 200px;
- button {
- @include basicIconButton(10px, 14px, ui);
- gap: 20px;
- }
- }
}