feat(@ui): migrate Banner component

This commit is contained in:
Paul Makles 2022-05-29 15:43:36 +01:00
parent 12b9716043
commit 20d31babce
2 changed files with 2 additions and 12 deletions

View file

@ -1,14 +1,14 @@
import { Text } from "preact-i18n"; import { Text } from "preact-i18n";
import { useContext } from "preact/hooks"; import { useContext } from "preact/hooks";
import { Banner } from "@revoltchat/ui";
import { import {
ClientStatus, ClientStatus,
StatusContext, StatusContext,
useClient, useClient,
} from "../../../context/revoltjs/RevoltClient"; } from "../../../context/revoltjs/RevoltClient";
import Banner from "../../ui/Banner";
export default function ConnectionStatus() { export default function ConnectionStatus() {
const status = useContext(StatusContext); const status = useContext(StatusContext);
const client = useClient(); const client = useClient();

View file

@ -1,10 +0,0 @@
import styled from "styled-components/macro";
export default styled.div`
padding: 8px;
font-size: 14px;
text-align: center;
color: var(--accent);
background: var(--primary-background);
`;