feat: Reminder settings UI

This commit is contained in:
alexsparkes
2022-04-13 22:15:07 +01:00
parent 8e0511667a
commit 73a82f4845
7 changed files with 130 additions and 6 deletions

View File

@@ -35,6 +35,8 @@ const downloadImage = async (info) => {
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');
@@ -134,6 +136,7 @@ export default function PhotoInformation({ info, url, api }) {
);
}
const downloadEnabled =
localStorage.getItem('downloadbtn') === 'true' && !info.offline && !info.photographerURL && api;
const downloadBackground = () => {
@@ -279,6 +282,7 @@ export default function PhotoInformation({ info, url, api }) {
<Download onClick={() => downloadImage(info)} />
</Tooltip>
</div>
<span className='subtitle' style={{marginBottom: '20px'}}>Description</span>
<div className="extra-content">
<span className="subtitle">
{variables.language.getMessage(