Port modal / popover context.

This commit is contained in:
Paul
2021-06-19 18:46:05 +01:00
parent 5b77ed439f
commit 9706dd75f3
57 changed files with 2562 additions and 140 deletions

View File

@@ -5,4 +5,5 @@ export default styled.div`
display: flex;
user-select: none;
flex-direction: row;
align-items: stretch;
`;

View File

@@ -1,10 +1,10 @@
import { Text } from "preact-i18n";
import Banner from "../../ui/Banner";
import { useContext } from "preact/hooks";
import { AppContext, ClientStatus } from "../../../context/revoltjs/RevoltClient";
import { ClientStatus, StatusContext } from "../../../context/revoltjs/RevoltClient";
export default function ConnectionStatus() {
const { status } = useContext(AppContext);
const status = useContext(StatusContext);
if (status === ClientStatus.OFFLINE) {
return (

View File

@@ -48,7 +48,7 @@ const HomeList = styled.div`
function HomeSidebar(props: Props) {
const { pathname } = useLocation();
const { client } = useContext(AppContext);
const client = useContext(AppContext);
const { channel } = useParams<{ channel: string }>();
// const { openScreen, writeClipboard } = useContext(IntermediateContext);