Fixing console errors.

This commit is contained in:
Roland 2022-05-01 21:18:49 -06:00
parent e5b2135cb2
commit 5fc99a6dda
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 4 additions and 12 deletions

View file

@ -1,12 +1,4 @@
import {
API_URI,
ARCHIVES_API,
DEFAULT_LIMIT,
emptyToNull,
OTP_API,
secondsToDateTime,
VIDEOS_API
} from "./components/Common";
import {API_URI, ARCHIVES_API, DEFAULT_LIMIT, emptyToNull, OTP_API, VIDEOS_API} from "./components/Common";
import {toast} from 'react-semantic-toasts';
function timeoutPromise(ms, promise) {
@ -472,7 +464,7 @@ const replaceFileDatetimes = (files) => {
for (let i = 0; i < files.length; i++) {
let file = files[i];
if (file['modified']) {
files[i]['modified'] = secondsToDateTime(file['modified']);
files[i]['modified'] = file['modified'] * 1000;
}
}
return files;

View file

@ -443,7 +443,7 @@ class ChannelPage extends APIForm {
<Button color='blue' onClick={this.downloadChannel}>
Download
</Button>
<Button color='inverted blue' onClick={this.refreshChannel}>
<Button inverted color='blue' onClick={this.refreshChannel}>
Refresh
</Button>
</>

View file

@ -142,7 +142,7 @@ export function VideoCard({video}) {
let imageLabel = null;
if (video.favorite) {
imageLabel = {as: 'a', corner: 'left', icon: 'heart', color: 'green'};
imageLabel = {corner: 'left', icon: 'heart', color: 'green'};
}
return (