Skip to content

Commit

Permalink
fix: Label ui
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 29, 2024
1 parent 17a1e3b commit 4d8f57a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { Role, UserRole } from "@opensystemslab/planx-core/types";
import { AddButton } from "pages/Team";
import React, { useState } from "react";
import Permission from "ui/editor/Permission";
Expand Down Expand Up @@ -50,10 +51,11 @@ export const MembersTable = ({
const [actionType, setActionType] = useState<ActionType>("add");
const [initialValues, setInitialValues] = useState<TeamMember | undefined>();

const roleLabels: Record<string, string> = {
const roleLabels: Record<Exclude<Role, "public">, string> = {
platformAdmin: "Admin",
teamEditor: "Editor",
teamViewer: "Viewer",
demoUser: "Demo User",
};

const editUser = (member: TeamMember) => {
Expand Down

0 comments on commit 4d8f57a

Please sign in to comment.