Add in client updater, Notices API

This commit is contained in:
Vendicated 2022-10-01 00:42:50 +02:00
parent 9aaa47ea4e
commit 8161a07dba
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
20 changed files with 525 additions and 48 deletions

19
src/components/Link.tsx Normal file
View file

@ -0,0 +1,19 @@
import { React } from "../webpack/common";
interface Props {
href: string;
disabled?: boolean;
style?: React.CSSProperties;
}
export function Link(props: React.PropsWithChildren<Props>) {
if (props.disabled) {
props.style ??= {};
props.style.pointerEvents = "none";
}
return (
<a href={props.href} target="_blank" style={props.style}>
{props.children}
</a>
);
}