mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
feat(@ui): migrate Banner component
This commit is contained in:
@@ -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);
|
|
||||||
`;
|
|
||||||
Reference in New Issue
Block a user