diff --git a/src/components/helpers/notification/notification.jsx b/src/components/helpers/notification/notification.jsx
deleted file mode 100644
index a94fb5d4..00000000
--- a/src/components/helpers/notification/notification.jsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { memo } from 'react';
-
-import variables from 'modules/variables';
-import './preview.scss';
-
-function Notification(props) {
- return (
-
@@ -38,7 +43,7 @@ function ShareModal({ modalClose, data }) {
onClick={() =>
window
.open(
- `https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data}`,
+ `https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data.url}`,
'_blank',
)
.focus()
@@ -50,7 +55,7 @@ function ShareModal({ modalClose, data }) {
-
+
copyLink()}>
diff --git a/src/components/modals/main/tabs/backend/Tabs.jsx b/src/components/modals/main/tabs/backend/Tabs.jsx
index 7df795d8..ba6773a3 100644
--- a/src/components/modals/main/tabs/backend/Tabs.jsx
+++ b/src/components/modals/main/tabs/backend/Tabs.jsx
@@ -31,6 +31,11 @@ export default class Tabs extends PureComponent {
});
};
+ hideReminder() {
+ localStorage.setItem('showReminder', false);
+ document.querySelector('.reminder-info').style.display = 'none';
+ }
+
render() {
const display = localStorage.getItem('showReminder') === 'true' ? 'flex' : 'none';
@@ -40,7 +45,7 @@ export default class Tabs extends PureComponent {
{variables.getMessage('modals.main.settings.reminder.title')}
- localStorage.setItem('showReminder', false)}>
+ this.hideReminder()}>
diff --git a/src/components/widgets/background/Background.jsx b/src/components/widgets/background/Background.jsx
index ca707a56..0469e992 100644
--- a/src/components/widgets/background/Background.jsx
+++ b/src/components/widgets/background/Background.jsx
@@ -37,7 +37,9 @@ export default class Background extends PureComponent {
async setBackground() {
// clean up the previous image to prevent a memory leak
- if (this.state.blob) URL.revokeObjectURL(this.state.blob);
+ if (this.blob) {
+ URL.revokeObjectURL(this.blob);
+ }
const backgroundImage = document.getElementById('backgroundImage');
@@ -74,9 +76,9 @@ export default class Background extends PureComponent {
backgroundImage.style.backgroundImage = `url(${canvas.toDataURL()})`;
}
- this.state.blob = URL.createObjectURL(await (await fetch(url)).blob());
+ this.blob = URL.createObjectURL(await (await fetch(url)).blob());
backgroundImage.classList.add('backgroundTransform');
- backgroundImage.style.backgroundImage = `url(${this.state.blob})`;
+ backgroundImage.style.backgroundImage = `url(${this.blob})`;
} else {
// custom colour
backgroundImage.setAttribute('style', this.state.style);
@@ -165,7 +167,7 @@ export default class Background extends PureComponent {
offline = true;
}
- const setFavourited = ({ type, url, credit, location, camera }) => {
+ const setFavourited = ({ type, url, credit, location, camera, pun, offline }) => {
if (type === 'random_colour' || type === 'random_gradient') {
return this.setState({
type: 'colour',
@@ -178,6 +180,9 @@ export default class Background extends PureComponent {
credit,
location,
camera,
+ pun,
+ offline,
+ url,
},
});
};
diff --git a/src/components/widgets/background/Favourite.jsx b/src/components/widgets/background/Favourite.jsx
index 7a5cab55..29b5f3a8 100644
--- a/src/components/widgets/background/Favourite.jsx
+++ b/src/components/widgets/background/Favourite.jsx
@@ -77,10 +77,12 @@ export default class Favourite extends PureComponent {
JSON.stringify({
type,
url,
- credit: document.getElementById('credit').textContent || '',
+ credit: this.props.credit || '',
location: location?.innerText,
camera: camera?.innerText,
resolution: document.getElementById('infoResolution').textContent || '',
+ offline: this.props.offline,
+ pun: this.props.pun,
}),
);
}
diff --git a/src/components/widgets/background/PhotoInformation.jsx b/src/components/widgets/background/PhotoInformation.jsx
index 4043e075..b0a8aa59 100644
--- a/src/components/widgets/background/PhotoInformation.jsx
+++ b/src/components/widgets/background/PhotoInformation.jsx
@@ -364,7 +364,7 @@ function PhotoInformation({ info, url, api }) {
key="favourite"
placement="top"
>
-
+
{!info.offline ? (