Matt's the only one to ask for one of these so here we go... why not?

This commit is contained in:
Atridad Lahiji 2023-07-29 13:05:17 -06:00 committed by atridadl
parent d2c16fbb52
commit e3aebb08f5
No known key found for this signature in database
3 changed files with 11 additions and 0 deletions

View file

@ -1,6 +1,7 @@
enum RoleValue { enum RoleValue {
USER USER
ADMIN ADMIN
MATT
} }
generator client { generator client {

View file

@ -15,6 +15,7 @@ import {
IoReloadOutline, IoReloadOutline,
IoSaveOutline, IoSaveOutline,
} from "react-icons/io5"; } from "react-icons/io5";
import { GiStarFormation } from "react-icons/gi";
import { z } from "zod"; import { z } from "zod";
import { api } from "~/utils/api"; import { api } from "~/utils/api";
import { getServerAuthSession } from "../../server/auth"; import { getServerAuthSession } from "../../server/auth";
@ -310,6 +311,14 @@ const RoomBody: React.FC = ({}) => {
<FaShieldAlt className="inline-block text-primary" /> <FaShieldAlt className="inline-block text-primary" />
</div> </div>
)}{" "} )}{" "}
{presenceItem.data.role === "MATT" && (
<div
className="tooltip tooltip-secondary"
data-tip="Matt"
>
<GiStarFormation className="inline-block text-secondary" />
</div>
)}{" "}
{presenceItem.clientId === roomFromDb.userId && ( {presenceItem.clientId === roomFromDb.userId && (
<div <div
className="tooltip tooltip-warning" className="tooltip tooltip-warning"

View file

@ -10,6 +10,7 @@ export type EventType = BetterEnum<typeof EventTypes>;
const RoleValues = { const RoleValues = {
ADMIN: "ADMIN", ADMIN: "ADMIN",
USER: "USER", USER: "USER",
MATT: "MATT",
} as const; } as const;
export type Role = BetterEnum<typeof RoleValues>; export type Role = BetterEnum<typeof RoleValues>;