feat: WIP quick links widget, better maximise/favourite widget, fixed favourite button, finish download button etc

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2021-04-08 19:17:40 +01:00
parent 3d945656d6
commit 5cf9bd74f4
16 changed files with 189 additions and 62 deletions

View File

@@ -14,9 +14,6 @@ export default class Background extends React.PureComponent {
photoInfo: {
hidden: false,
credit: '',
location: 'N/A',
camera: 'N/A',
resolution: 'N/A',
url: ''
}
};
@@ -95,8 +92,7 @@ export default class Background extends React.PureComponent {
return this.setState({
url: favourited.url,
photoInfo: {
credit: favourited.credit,
location: favourited.location
credit: favourited.credit
}
});
}
@@ -108,7 +104,7 @@ export default class Background extends React.PureComponent {
switch (backgroundAPI) {
case 'unsplash':
requestURL = `${window.constants.UNSPLASH_URL}/getImage`;
break;
break;
// Defaults to Mue
default:
requestURL = `${window.constants.API_URL}/getImage?category=Outdoors`;