fix: marketplace quote images, offline background img and quotes, remove placeholder text

This commit is contained in:
David Ralph
2022-04-17 10:24:51 +01:00
parent 4691ccf166
commit 11b952c3e7
8 changed files with 22 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
// since there is so much code in the component, we have moved it to a separate file
import offlineImages from './offlineImages.json';
export function videoCheck(url) {
return (
url.startsWith('data:video/') ||
@@ -9,8 +10,6 @@ export function videoCheck(url) {
}
export function offlineBackground() {
const offlineImages = require('./offlineImages.json');
// Get all photographers from the keys in offlineImages.json
const photographers = Object.keys(offlineImages);
const photographer = photographers[Math.floor(Math.random() * photographers.length)];