Rename manage-roster -> manage-team

This commit is contained in:
Kalle (Sendou)
2022-01-20 08:40:18 +02:00
parent 467468bf02
commit 4ce68fc758
3 changed files with 5 additions and 4 deletions

View File

@@ -122,11 +122,11 @@ function InfoBannerActionButton() {
if (alreadyRegistered) {
return (
<Link
to="manage-roster"
to="manage-team"
className="info-banner__action-button"
prefetch="intent"
>
Manage roster
Manage team
</Link>
);
}

View File

@@ -112,7 +112,8 @@ export default function TournamentPage() {
if (isTournamentAdmin({ userId: user?.id, organization: data.organizer })) {
result.push({
code: "manage",
text: "Manage",
// TODO: figure out a good name
text: "Controls",
icon: <AdminIcon />,
});
if (!tournamentHasStarted(data.brackets)) {

View File

@@ -164,7 +164,7 @@ export const loader: LoaderFunction = async ({ params, context }) => {
};
// TODO: should not 404 but redirect instead - catchBoundary?
export default function ManageRosterPage() {
export default function ManageTeamPage() {
const actionData = useActionData<ActionData>();
const { ownTeam, trustingUsers } = useLoaderData<Data>();
const baseURL = useBaseURL();