feat(@ui): migrate Banner component
parent
9d7996550d
commit
52ad0b2095
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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);
|
|
||||||
`;
|
|
||||||
Loading…
Reference in New Issue