mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 08:11:03 -05:00
Added verified server badge for any servers created by insert
This commit is contained in:
parent
69cd410aff
commit
cefeebb4d2
1 changed files with 26 additions and 0 deletions
|
@ -5,9 +5,13 @@ import { ServerPermission } from "revolt.js/dist/api/permissions";
|
||||||
import { Server } from "revolt.js/dist/maps/Servers";
|
import { Server } from "revolt.js/dist/maps/Servers";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
|
import { Text } from "preact-i18n";
|
||||||
|
|
||||||
import Header from "../ui/Header";
|
import Header from "../ui/Header";
|
||||||
import IconButton from "../ui/IconButton";
|
import IconButton from "../ui/IconButton";
|
||||||
|
|
||||||
|
import Tooltip from "./Tooltip";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
server: Server;
|
server: Server;
|
||||||
}
|
}
|
||||||
|
@ -27,6 +31,28 @@ export default observer(({ server }: Props) => {
|
||||||
style={{
|
style={{
|
||||||
background: bannerURL ? `url('${bannerURL}')` : undefined,
|
background: bannerURL ? `url('${bannerURL}')` : undefined,
|
||||||
}}>
|
}}>
|
||||||
|
{server.owner === "01EX2NCWQ0CHS3QJF0FEQS1GR4" ? (
|
||||||
|
<Tooltip content={"Official Server"} placement={"bottom-start"}>
|
||||||
|
<svg width="20" height="20">
|
||||||
|
<image
|
||||||
|
xlinkHref="/assets/verified.svg"
|
||||||
|
height="20"
|
||||||
|
width="20"
|
||||||
|
/>
|
||||||
|
<image
|
||||||
|
xlinkHref="/assets/badges/developer.svg"
|
||||||
|
height="15"
|
||||||
|
width="15"
|
||||||
|
x="3"
|
||||||
|
y="3"
|
||||||
|
style={
|
||||||
|
"justify-content: center; align-items: center;"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</Tooltip>
|
||||||
|
) : undefined}
|
||||||
|
|
||||||
<ServerName>{server.name}</ServerName>
|
<ServerName>{server.name}</ServerName>
|
||||||
{(server.permission & ServerPermission.ManageServer) > 0 && (
|
{(server.permission & ServerPermission.ManageServer) > 0 && (
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
|
|
Loading…
Add table
Reference in a new issue