{flags & 1 ? (
/** ! FIXME: i18n this area */
-
- User is suspended
-
+
+
+
) : undefined}
{flags & 2 ? (
-
- User deleted their account
-
+
+
+
) : undefined}
{flags & 4 ? (
-
- User is banned
-
+
+
+
) : undefined}
{user.bot ? (
<>
diff --git a/src/pages/Open.tsx b/src/pages/Open.tsx
index bd686e79..20f9b3fa 100644
--- a/src/pages/Open.tsx
+++ b/src/pages/Open.tsx
@@ -4,6 +4,8 @@ import { useHistory, useParams } from "react-router-dom";
import { Text } from "preact-i18n";
import { useContext, useEffect } from "preact/hooks";
+import { Header } from "@revoltchat/ui";
+
import { useIntermediate } from "../context/intermediate/Intermediate";
import {
AppContext,
@@ -11,8 +13,6 @@ import {
StatusContext,
} from "../context/revoltjs/RevoltClient";
-import Header from "../components/ui/Header";
-
export default function Open() {
const history = useHistory();
const client = useContext(AppContext);
@@ -22,7 +22,7 @@ export default function Open() {
if (status !== ClientStatus.ONLINE) {
return (
-
+
);
@@ -72,7 +72,7 @@ export default function Open() {
});
return (
-
+
);
diff --git a/src/pages/channels/ChannelHeader.tsx b/src/pages/channels/ChannelHeader.tsx
index 69f32d50..46860e4b 100644
--- a/src/pages/channels/ChannelHeader.tsx
+++ b/src/pages/channels/ChannelHeader.tsx
@@ -1,31 +1,19 @@
-import {
- At,
- ChevronLeft,
- ChevronRight,
- Hash,
-} from "@styled-icons/boxicons-regular";
+import { At, Hash } from "@styled-icons/boxicons-regular";
import { Notepad, Group } from "@styled-icons/boxicons-solid";
import { observer } from "mobx-react-lite";
import { Channel } from "revolt.js";
import { User } from "revolt.js";
-import styled, { css } from "styled-components/macro";
+import styled from "styled-components/macro";
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
-import { useApplicationState } from "../../mobx/State";
-import { SIDEBAR_CHANNELS, SIDEBAR_MEMBERS } from "../../mobx/stores/Layout";
-
import { useIntermediate } from "../../context/intermediate/Intermediate";
import { getChannelName } from "../../context/revoltjs/util";
import { useStatusColour } from "../../components/common/user/UserIcon";
import UserStatus from "../../components/common/user/UserStatus";
-import Header, {
- HamburgerAction,
- PageHeader,
-} from "../../components/ui/Header";
-
import Markdown from "../../components/markdown/Markdown";
+import { PageHeader } from "../../components/ui/Header";
import HeaderActions from "./actions/HeaderActions";
export interface ChannelHeaderProps {
@@ -98,7 +86,7 @@ export default observer(({ channel }: ChannelHeaderProps) => {
}
return (
-
+
{name}
{isTouchscreenDevice &&
diff --git a/src/pages/developer/Developer.tsx b/src/pages/developer/Developer.tsx
index d64cf5f6..46733c44 100644
--- a/src/pages/developer/Developer.tsx
+++ b/src/pages/developer/Developer.tsx
@@ -7,7 +7,7 @@ import { TextReact } from "../../lib/i18n";
import { AppContext } from "../../context/revoltjs/RevoltClient";
-import Header, { PageHeader } from "../../components/ui/Header";
+import { PageHeader } from "../../components/ui/Header";
export default function Developer() {
// const voice = useContext(VoiceContext);
diff --git a/src/pages/discover/Discover.tsx b/src/pages/discover/Discover.tsx
index 7894dc32..7102c532 100644
--- a/src/pages/discover/Discover.tsx
+++ b/src/pages/discover/Discover.tsx
@@ -5,7 +5,7 @@ import styled, { css } from "styled-components/macro";
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
-import { Preloader } from "@revoltchat/ui";
+import { Header, Preloader } from "@revoltchat/ui";
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
@@ -14,8 +14,6 @@ import { useApplicationState } from "../../mobx/State";
import { Overrides } from "../../context/Theme";
import { useIntermediate } from "../../context/intermediate/Intermediate";
-import Header from "../../components/ui/Header";
-
const Container = styled.div`
flex-grow: 1;
display: flex;
@@ -165,7 +163,7 @@ export default function Discover() {
return (
{isTouchscreenDevice && (
-
+
diff --git a/src/pages/friends/Friends.tsx b/src/pages/friends/Friends.tsx
index 63ba7e21..df5fa24c 100644
--- a/src/pages/friends/Friends.tsx
+++ b/src/pages/friends/Friends.tsx
@@ -68,7 +68,10 @@ export default observer(() => {
const isEmpty = lists.reduce((p: number, n) => p + n.length, 0) === 0;
return (
<>
- } transparent noBurger>
+ }
+ withTransparency
+ noBurger>
diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx
index 56c5cfa1..2a5e0da6 100644
--- a/src/pages/home/Home.tsx
+++ b/src/pages/home/Home.tsx
@@ -86,7 +86,7 @@ export default observer(() => {
)}
-
} transparent>
+
} withTransparency>
diff --git a/src/pages/invite/Invite.tsx b/src/pages/invite/Invite.tsx
index 2e28da93..b11f0d96 100644
--- a/src/pages/invite/Invite.tsx
+++ b/src/pages/invite/Invite.tsx
@@ -7,7 +7,7 @@ import styles from "./Invite.module.scss";
import { Text } from "preact-i18n";
import { useContext, useEffect, useState } from "preact/hooks";
-import { Button, Preloader } from "@revoltchat/ui";
+import { Button, Category, Error, Preloader } from "@revoltchat/ui";
import { TextReact } from "../../lib/i18n";
@@ -23,7 +23,6 @@ import { takeError } from "../../context/revoltjs/util";
import ServerIcon from "../../components/common/ServerIcon";
import UserIcon from "../../components/common/user/UserIcon";
-import Overline from "../../components/ui/Overline";
export default function Invite() {
const history = useHistory();
@@ -149,7 +148,9 @@ export default function Invite() {
}}
/>
-
+
+
+
-
Add to server
+
Add to server
-
Add to group
+
Add to group