Linking videos to Video Statistics.

This commit is contained in:
Roland 2022-12-15 14:06:20 -07:00
parent 92abd6b627
commit a5856309ed
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -1,6 +1,6 @@
import React, {useContext} from 'react';
import {Divider, SegmentGroup, StatisticLabel, StatisticValue} from "semantic-ui-react";
import {Route, Routes} from "react-router-dom";
import {Link, Route, Routes} from "react-router-dom";
import "../static/wrolpi.css";
import {decryptOTP, encryptOTP} from "../api";
import {mimetypeColor, PageContainer, toLocaleString, useTitle} from "./Common";
@ -181,10 +181,12 @@ function FileStatistics() {
</Segment>
<Segment>
<StatisticGroup size='small'>
<Statistic color={mimetypeColor('video/')}>
<StatisticValue>{toLocaleString(video_count)}</StatisticValue>
<StatisticLabel>Videos</StatisticLabel>
</Statistic>
<Link to={'/videos/statistics'}>
<Statistic color={mimetypeColor('video/')}>
<StatisticValue>{toLocaleString(video_count)}</StatisticValue>
<StatisticLabel>Videos</StatisticLabel>
</Statistic>
</Link>
<Statistic color={mimetypeColor('application/pdf')}>
<StatisticValue>{toLocaleString(pdf_count)}</StatisticValue>
<StatisticLabel>PDFs</StatisticLabel>