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 {
|
enum RoleValue {
|
||||||
USER
|
USER
|
||||||
ADMIN
|
ADMIN
|
||||||
|
MATT
|
||||||
}
|
}
|
||||||
|
|
||||||
generator client {
|
generator client {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue