diff --git a/app/src/components/Apps.js b/app/src/components/Apps.js
index 4eb7db15..b4e1669b 100644
--- a/app/src/components/Apps.js
+++ b/app/src/components/Apps.js
@@ -1,6 +1,5 @@
import React from 'react';
import {Button, Divider, Segment, TextArea} from "semantic-ui-react";
-import Container from "semantic-ui-react/dist/commonjs/elements/Container";
import {Route} from "react-router-dom";
import "../static/wrolpi.css";
import {decryptOTP, encryptOTP} from "../api";
diff --git a/app/src/components/Archive.js b/app/src/components/Archive.js
index d283f455..52490895 100644
--- a/app/src/components/Archive.js
+++ b/app/src/components/Archive.js
@@ -1,6 +1,7 @@
import React, {useState} from "react";
import {Card, Confirm, Container, Icon, Image, Placeholder} from "semantic-ui-react";
import Paginator, {
+ CardGroupCentered,
ClearButton,
ExternalLink,
PageContainer,
@@ -162,7 +163,7 @@ function ArchiveCard({archive, syncArchive, deleteArchive, setDomain}) {
function ArchiveCards({archives, syncArchive, deleteArchive, setDomain}) {
return (
-
+
{archives.map((i) => {
return
})}
-
+
)
}
diff --git a/app/src/components/Common.js b/app/src/components/Common.js
index 7aa63ba8..167278ad 100644
--- a/app/src/components/Common.js
+++ b/app/src/components/Common.js
@@ -147,11 +147,11 @@ export function VideoCard({video}) {
export function VideoCards({videos}) {
return (
-
+
{videos.map((v) => {
return
})}
-
+
)
}
@@ -506,14 +506,6 @@ export function changePageHistory(history, location, activePage, searchStr, sear
scrollToTop();
}
-export function objectToQuery(d) {
- // Return an HTTP query string based on the provided dictionary.
- // Do not include key/values when the value is null if noNull=true
- let arr = Object.keys(d).map((k) => d[k] === null ? '' : `${k}=${d[k]}`);
- arr = arr.filter((i) => i !== '')
- return arr.join('&');
-}
-
export function ClearButton({onClick, style, label, icon = 'close'}) {
return
)
}
+
+export function CardGroupCentered(props) {
+ return (
+ <>
+
+
+ {props.children}
+
+
+
+
+ {props.children}
+
+
+ >
+ )
+}