Matt's the only one to ask for one of these so here we go... why not?
This commit is contained in:
parent
c98e67d511
commit
f1806ef4a2
3 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
enum RoleValue {
|
||||
USER
|
||||
ADMIN
|
||||
MATT
|
||||
}
|
||||
|
||||
generator client {
|
||||
|
|
|
@ -15,6 +15,7 @@ import {
|
|||
IoReloadOutline,
|
||||
IoSaveOutline,
|
||||
} from "react-icons/io5";
|
||||
import { GiStarFormation } from "react-icons/gi";
|
||||
import { z } from "zod";
|
||||
import { api } from "~/utils/api";
|
||||
import { getServerAuthSession } from "../../server/auth";
|
||||
|
@ -310,6 +311,14 @@ const RoomBody: React.FC = ({}) => {
|
|||
<FaShieldAlt className="inline-block text-primary" />
|
||||
</div>
|
||||
)}{" "}
|
||||
{presenceItem.data.role === "MATT" && (
|
||||
<div
|
||||
className="tooltip tooltip-secondary"
|
||||
data-tip="Matt"
|
||||
>
|
||||
<GiStarFormation className="inline-block text-secondary" />
|
||||
</div>
|
||||
)}{" "}
|
||||
{presenceItem.clientId === roomFromDb.userId && (
|
||||
<div
|
||||
className="tooltip tooltip-warning"
|
||||
|
|
|
@ -10,6 +10,7 @@ export type EventType = BetterEnum<typeof EventTypes>;
|
|||
const RoleValues = {
|
||||
ADMIN: "ADMIN",
|
||||
USER: "USER",
|
||||
MATT: "MATT",
|
||||
} as const;
|
||||
export type Role = BetterEnum<typeof RoleValues>;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue