mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix typescript build errors
This commit is contained in:
parent
59f63e5438
commit
e0ce9a35ac
@ -30,7 +30,7 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function LogTable({ logs, pageSize }: Props) {
|
export default function LogTable({ logs, pageSize }: Props) {
|
||||||
if (!logs.length) {
|
if (!logs?.length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|||||||
@ -5,7 +5,7 @@ interface StatisticItemProps {
|
|||||||
title?: string,
|
title?: string,
|
||||||
value?: any,
|
value?: any,
|
||||||
prefix?: JSX.Element,
|
prefix?: JSX.Element,
|
||||||
// color?: string,
|
color?: string,
|
||||||
progress?: boolean,
|
progress?: boolean,
|
||||||
centered?: boolean,
|
centered?: boolean,
|
||||||
};
|
};
|
||||||
@ -13,7 +13,7 @@ const defaultProps = {
|
|||||||
title: '',
|
title: '',
|
||||||
value: 0,
|
value: 0,
|
||||||
prefix: null,
|
prefix: null,
|
||||||
// color: '',
|
color: '',
|
||||||
progress: false,
|
progress: false,
|
||||||
centered: false,
|
centered: false,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { getGithubRelease } from "../utils/apis";
|
|||||||
const { Title } = Typography;
|
const { Title } = Typography;
|
||||||
|
|
||||||
function AssetTable(assets) {
|
function AssetTable(assets) {
|
||||||
const data = Object.values(assets);
|
const data = Object.values(assets) as object[];
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user