|
|
|
|
@@ -1,21 +1,24 @@
|
|
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
|
|
|
import { useState, useEffect, useCallback } from 'react';
|
|
|
|
|
import { useRouter, useSearchParams, usePathname } from 'next/navigation';
|
|
|
|
|
import Button from '../ui/Button';
|
|
|
|
|
import Card from '../ui/Card';
|
|
|
|
|
import LeagueMembers from './LeagueMembers';
|
|
|
|
|
import ScheduleRaceForm from './ScheduleRaceForm';
|
|
|
|
|
import { League } from '@gridpilot/racing/domain/entities/League';
|
|
|
|
|
import {
|
|
|
|
|
getLeagueMembershipRepository,
|
|
|
|
|
getDriverStats,
|
|
|
|
|
getAllDriverRankings,
|
|
|
|
|
getDriverRepository,
|
|
|
|
|
getGetLeagueFullConfigQuery,
|
|
|
|
|
getRaceRepository,
|
|
|
|
|
getProtestRepository,
|
|
|
|
|
} from '@/lib/di-container';
|
|
|
|
|
loadLeagueJoinRequests,
|
|
|
|
|
approveLeagueJoinRequest,
|
|
|
|
|
rejectLeagueJoinRequest,
|
|
|
|
|
loadLeagueOwnerSummary,
|
|
|
|
|
loadLeagueConfig,
|
|
|
|
|
loadLeagueProtests,
|
|
|
|
|
removeLeagueMember as removeLeagueMemberCommand,
|
|
|
|
|
updateLeagueMemberRole as updateLeagueMemberRoleCommand,
|
|
|
|
|
type LeagueJoinRequestViewModel,
|
|
|
|
|
type LeagueOwnerSummaryViewModel,
|
|
|
|
|
type LeagueAdminProtestsViewModel,
|
|
|
|
|
} from '@/lib/presenters/LeagueAdminPresenter';
|
|
|
|
|
import type { LeagueConfigFormModel } from '@gridpilot/racing/application';
|
|
|
|
|
import { LeagueBasicsSection } from './LeagueBasicsSection';
|
|
|
|
|
import { LeagueStructureSection } from './LeagueStructureSection';
|
|
|
|
|
@@ -26,25 +29,21 @@ import { LeagueSponsorshipsSection } from './LeagueSponsorshipsSection';
|
|
|
|
|
import { LeagueMembershipFeesSection } from './LeagueMembershipFeesSection';
|
|
|
|
|
import { useEffectiveDriverId } from '@/lib/currentDriver';
|
|
|
|
|
import type { MembershipRole } from '@/lib/leagueMembership';
|
|
|
|
|
import type { DriverDTO } from '@gridpilot/racing/application/dto/DriverDTO';
|
|
|
|
|
import { EntityMappers } from '@gridpilot/racing/application/mappers/EntityMappers';
|
|
|
|
|
import DriverSummaryPill from '@/components/profile/DriverSummaryPill';
|
|
|
|
|
import DriverIdentity from '@/components/drivers/DriverIdentity';
|
|
|
|
|
import Modal from '@/components/ui/Modal';
|
|
|
|
|
import { AlertTriangle, CheckCircle, Clock, XCircle, Flag, Calendar, User, DollarSign, Wallet, Paintbrush, Trophy, Download, Car, Upload } from 'lucide-react';
|
|
|
|
|
import type { Protest } from '@gridpilot/racing/domain/entities/Protest';
|
|
|
|
|
import type { Race } from '@gridpilot/racing/domain/entities/Race';
|
|
|
|
|
|
|
|
|
|
interface JoinRequest {
|
|
|
|
|
id: string;
|
|
|
|
|
leagueId: string;
|
|
|
|
|
driverId: string;
|
|
|
|
|
requestedAt: Date;
|
|
|
|
|
message?: string;
|
|
|
|
|
}
|
|
|
|
|
type JoinRequest = LeagueJoinRequestViewModel;
|
|
|
|
|
|
|
|
|
|
interface LeagueAdminProps {
|
|
|
|
|
league: League;
|
|
|
|
|
league: {
|
|
|
|
|
id: string;
|
|
|
|
|
ownerId: string;
|
|
|
|
|
settings: {
|
|
|
|
|
pointsSystem: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
onLeagueUpdate?: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -54,8 +53,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
const pathname = usePathname();
|
|
|
|
|
const currentDriverId = useEffectiveDriverId();
|
|
|
|
|
const [joinRequests, setJoinRequests] = useState<JoinRequest[]>([]);
|
|
|
|
|
const [requestDriversById, setRequestDriversById] = useState<Record<string, DriverDTO>>({});
|
|
|
|
|
const [ownerDriver, setOwnerDriver] = useState<DriverDTO | null>(null);
|
|
|
|
|
const [ownerSummary, setOwnerSummary] = useState<LeagueOwnerSummaryViewModel | null>(null);
|
|
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
|
const [error, setError] = useState<string | null>(null);
|
|
|
|
|
const [activeTab, setActiveTab] = useState<'members' | 'requests' | 'races' | 'settings' | 'protests' | 'sponsorships' | 'fees' | 'wallet' | 'prizes' | 'liveries'>('members');
|
|
|
|
|
@@ -63,32 +61,14 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
const [rejectReason, setRejectReason] = useState('');
|
|
|
|
|
const [configForm, setConfigForm] = useState<LeagueConfigFormModel | null>(null);
|
|
|
|
|
const [configLoading, setConfigLoading] = useState(false);
|
|
|
|
|
const [protests, setProtests] = useState<Protest[]>([]);
|
|
|
|
|
const [protestRaces, setProtestRaces] = useState<Record<string, Race>>({});
|
|
|
|
|
const [protestDriversById, setProtestDriversById] = useState<Record<string, DriverDTO>>({});
|
|
|
|
|
const [protestsViewModel, setProtestsViewModel] = useState<LeagueAdminProtestsViewModel | null>(null);
|
|
|
|
|
const [protestsLoading, setProtestsLoading] = useState(false);
|
|
|
|
|
|
|
|
|
|
const loadJoinRequests = useCallback(async () => {
|
|
|
|
|
setLoading(true);
|
|
|
|
|
try {
|
|
|
|
|
const membershipRepo = getLeagueMembershipRepository();
|
|
|
|
|
const requests = await membershipRepo.getJoinRequests(league.id);
|
|
|
|
|
const requests = await loadLeagueJoinRequests(league.id);
|
|
|
|
|
setJoinRequests(requests);
|
|
|
|
|
|
|
|
|
|
const driverRepo = getDriverRepository();
|
|
|
|
|
const uniqueDriverIds = Array.from(new Set(requests.map((r) => r.driverId)));
|
|
|
|
|
const driverEntities = await Promise.all(
|
|
|
|
|
uniqueDriverIds.map((id) => driverRepo.findById(id)),
|
|
|
|
|
);
|
|
|
|
|
const driverDtos = driverEntities
|
|
|
|
|
.map((driver) => (driver ? EntityMappers.toDriverDTO(driver) : null))
|
|
|
|
|
.filter((dto): dto is DriverDTO => dto !== null);
|
|
|
|
|
|
|
|
|
|
const byId: Record<string, DriverDTO> = {};
|
|
|
|
|
for (const dto of driverDtos) {
|
|
|
|
|
byId[dto.id] = dto;
|
|
|
|
|
}
|
|
|
|
|
setRequestDriversById(byId);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error('Failed to load join requests:', err);
|
|
|
|
|
} finally {
|
|
|
|
|
@@ -103,24 +83,22 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
async function loadOwner() {
|
|
|
|
|
try {
|
|
|
|
|
const driverRepo = getDriverRepository();
|
|
|
|
|
const entity = await driverRepo.findById(league.ownerId);
|
|
|
|
|
setOwnerDriver(EntityMappers.toDriverDTO(entity));
|
|
|
|
|
const summary = await loadLeagueOwnerSummary(league);
|
|
|
|
|
setOwnerSummary(summary);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error('Failed to load league owner:', err);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loadOwner();
|
|
|
|
|
}, [league.ownerId]);
|
|
|
|
|
}, [league]);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
async function loadConfig() {
|
|
|
|
|
setConfigLoading(true);
|
|
|
|
|
try {
|
|
|
|
|
const query = getGetLeagueFullConfigQuery();
|
|
|
|
|
const form = await query.execute({ leagueId: league.id });
|
|
|
|
|
setConfigForm(form);
|
|
|
|
|
const configVm = await loadLeagueConfig(league.id);
|
|
|
|
|
setConfigForm(configVm.form);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error('Failed to load league config:', err);
|
|
|
|
|
} finally {
|
|
|
|
|
@@ -136,45 +114,8 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
async function loadProtests() {
|
|
|
|
|
setProtestsLoading(true);
|
|
|
|
|
try {
|
|
|
|
|
const raceRepo = getRaceRepository();
|
|
|
|
|
const protestRepo = getProtestRepository();
|
|
|
|
|
const driverRepo = getDriverRepository();
|
|
|
|
|
|
|
|
|
|
// Get all races for this league
|
|
|
|
|
const leagueRaces = await raceRepo.findByLeagueId(league.id);
|
|
|
|
|
|
|
|
|
|
// Get protests for each race
|
|
|
|
|
const allProtests: Protest[] = [];
|
|
|
|
|
const racesById: Record<string, Race> = {};
|
|
|
|
|
|
|
|
|
|
for (const race of leagueRaces) {
|
|
|
|
|
racesById[race.id] = race;
|
|
|
|
|
const raceProtests = await protestRepo.findByRaceId(race.id);
|
|
|
|
|
allProtests.push(...raceProtests);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setProtests(allProtests);
|
|
|
|
|
setProtestRaces(racesById);
|
|
|
|
|
|
|
|
|
|
// Load driver info for all protesters and accused
|
|
|
|
|
const driverIds = new Set<string>();
|
|
|
|
|
allProtests.forEach((p) => {
|
|
|
|
|
driverIds.add(p.protestingDriverId);
|
|
|
|
|
driverIds.add(p.accusedDriverId);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const driverEntities = await Promise.all(
|
|
|
|
|
Array.from(driverIds).map((id) => driverRepo.findById(id)),
|
|
|
|
|
);
|
|
|
|
|
const driverDtos = driverEntities
|
|
|
|
|
.map((driver) => (driver ? EntityMappers.toDriverDTO(driver) : null))
|
|
|
|
|
.filter((dto): dto is DriverDTO => dto !== null);
|
|
|
|
|
|
|
|
|
|
const byId: Record<string, DriverDTO> = {};
|
|
|
|
|
for (const dto of driverDtos) {
|
|
|
|
|
byId[dto.id] = dto;
|
|
|
|
|
}
|
|
|
|
|
setProtestDriversById(byId);
|
|
|
|
|
const vm = await loadLeagueProtests(league.id);
|
|
|
|
|
setProtestsViewModel(vm);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error('Failed to load protests:', err);
|
|
|
|
|
} finally {
|
|
|
|
|
@@ -189,23 +130,8 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
|
|
|
|
|
const handleApproveRequest = async (requestId: string) => {
|
|
|
|
|
try {
|
|
|
|
|
const membershipRepo = getLeagueMembershipRepository();
|
|
|
|
|
const requests = await membershipRepo.getJoinRequests(league.id);
|
|
|
|
|
const request = requests.find((r) => r.id === requestId);
|
|
|
|
|
if (!request) {
|
|
|
|
|
throw new Error('Join request not found');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await membershipRepo.saveMembership({
|
|
|
|
|
leagueId: request.leagueId,
|
|
|
|
|
driverId: request.driverId,
|
|
|
|
|
role: 'member',
|
|
|
|
|
status: 'active',
|
|
|
|
|
joinedAt: new Date(),
|
|
|
|
|
});
|
|
|
|
|
await membershipRepo.removeJoinRequest(requestId);
|
|
|
|
|
|
|
|
|
|
await loadJoinRequests();
|
|
|
|
|
const updated = await approveLeagueJoinRequest(league.id, requestId);
|
|
|
|
|
setJoinRequests(updated);
|
|
|
|
|
onLeagueUpdate?.();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
setError(err instanceof Error ? err.message : 'Failed to approve request');
|
|
|
|
|
@@ -214,14 +140,13 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
|
|
|
|
|
const handleRejectRequest = async (requestId: string, trimmedReason: string) => {
|
|
|
|
|
try {
|
|
|
|
|
const membershipRepo = getLeagueMembershipRepository();
|
|
|
|
|
// Alpha-only: we do not persist the reason yet, but we at least log it.
|
|
|
|
|
console.log('Join request rejected with reason:', {
|
|
|
|
|
requestId,
|
|
|
|
|
reason: trimmedReason,
|
|
|
|
|
});
|
|
|
|
|
await membershipRepo.removeJoinRequest(requestId);
|
|
|
|
|
await loadJoinRequests();
|
|
|
|
|
const updated = await rejectLeagueJoinRequest(league.id, requestId);
|
|
|
|
|
setJoinRequests(updated);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
setError(err instanceof Error ? err.message : 'Failed to reject request');
|
|
|
|
|
}
|
|
|
|
|
@@ -233,21 +158,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const membershipRepo = getLeagueMembershipRepository();
|
|
|
|
|
const performer = await membershipRepo.getMembership(league.id, currentDriverId);
|
|
|
|
|
if (!performer || (performer.role !== 'owner' && performer.role !== 'admin')) {
|
|
|
|
|
throw new Error('Only owners or admins can remove members');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const membership = await membershipRepo.getMembership(league.id, driverId);
|
|
|
|
|
if (!membership) {
|
|
|
|
|
throw new Error('Member not found');
|
|
|
|
|
}
|
|
|
|
|
if (membership.role === 'owner') {
|
|
|
|
|
throw new Error('Cannot remove the league owner');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await membershipRepo.removeMembership(league.id, driverId);
|
|
|
|
|
await removeLeagueMemberCommand(league.id, currentDriverId, driverId);
|
|
|
|
|
onLeagueUpdate?.();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
setError(err instanceof Error ? err.message : 'Failed to remove member');
|
|
|
|
|
@@ -256,25 +167,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
|
|
|
|
|
const handleUpdateRole = async (driverId: string, newRole: MembershipRole) => {
|
|
|
|
|
try {
|
|
|
|
|
const membershipRepo = getLeagueMembershipRepository();
|
|
|
|
|
const performer = await membershipRepo.getMembership(league.id, currentDriverId);
|
|
|
|
|
if (!performer || performer.role !== 'owner') {
|
|
|
|
|
throw new Error('Only the league owner can update roles');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const membership = await membershipRepo.getMembership(league.id, driverId);
|
|
|
|
|
if (!membership) {
|
|
|
|
|
throw new Error('Member not found');
|
|
|
|
|
}
|
|
|
|
|
if (membership.role === 'owner') {
|
|
|
|
|
throw new Error('Cannot change the owner role');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await membershipRepo.saveMembership({
|
|
|
|
|
...membership,
|
|
|
|
|
role: newRole,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await updateLeagueMemberRoleCommand(league.id, currentDriverId, driverId, newRole);
|
|
|
|
|
onLeagueUpdate?.();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
setError(err instanceof Error ? err.message : 'Failed to update role');
|
|
|
|
|
@@ -316,45 +209,6 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
router.push(url, { scroll: false });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ownerSummary = useMemo(() => {
|
|
|
|
|
if (!ownerDriver) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const stats = getDriverStats(ownerDriver.id);
|
|
|
|
|
const allRankings = getAllDriverRankings();
|
|
|
|
|
|
|
|
|
|
let rating: number | null = stats?.rating ?? null;
|
|
|
|
|
let rank: number | null = null;
|
|
|
|
|
|
|
|
|
|
if (stats) {
|
|
|
|
|
if (typeof stats.overallRank === 'number' && stats.overallRank > 0) {
|
|
|
|
|
rank = stats.overallRank;
|
|
|
|
|
} else {
|
|
|
|
|
const indexInGlobal = allRankings.findIndex(
|
|
|
|
|
(stat) => stat.driverId === stats.driverId,
|
|
|
|
|
);
|
|
|
|
|
if (indexInGlobal !== -1) {
|
|
|
|
|
rank = indexInGlobal + 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rating === null) {
|
|
|
|
|
const globalEntry = allRankings.find(
|
|
|
|
|
(stat) => stat.driverId === stats.driverId,
|
|
|
|
|
);
|
|
|
|
|
if (globalEntry) {
|
|
|
|
|
rating = globalEntry.rating;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
driver: ownerDriver,
|
|
|
|
|
rating,
|
|
|
|
|
rank,
|
|
|
|
|
};
|
|
|
|
|
}, [ownerDriver]);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
@@ -507,7 +361,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
) : (
|
|
|
|
|
<div className="space-y-4">
|
|
|
|
|
{joinRequests.map((request) => {
|
|
|
|
|
const driver = requestDriversById[request.driverId];
|
|
|
|
|
const driver = request.driver;
|
|
|
|
|
const requestedOn = new Date(request.requestedAt).toLocaleDateString('en-US', {
|
|
|
|
|
month: 'short',
|
|
|
|
|
day: 'numeric',
|
|
|
|
|
@@ -599,7 +453,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
<div className="text-center py-12 text-gray-400">
|
|
|
|
|
<div className="animate-pulse">Loading protests...</div>
|
|
|
|
|
</div>
|
|
|
|
|
) : protests.length === 0 ? (
|
|
|
|
|
) : !protestsViewModel || protestsViewModel.protests.length === 0 ? (
|
|
|
|
|
<div className="text-center py-12">
|
|
|
|
|
<div className="w-16 h-16 mx-auto mb-4 rounded-full bg-iron-gray/50 flex items-center justify-center">
|
|
|
|
|
<Flag className="w-8 h-8 text-gray-500" />
|
|
|
|
|
@@ -619,7 +473,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
<span className="text-xs font-medium uppercase">Pending</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-2xl font-bold text-white">
|
|
|
|
|
{protests.filter((p) => p.status === 'pending').length}
|
|
|
|
|
{protestsViewModel.protests.filter((p) => p.status === 'pending').length}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="rounded-lg bg-iron-gray/50 border border-charcoal-outline p-4">
|
|
|
|
|
@@ -628,7 +482,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
<span className="text-xs font-medium uppercase">Resolved</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-2xl font-bold text-white">
|
|
|
|
|
{protests.filter((p) => p.status === 'upheld' || p.status === 'dismissed').length}
|
|
|
|
|
{protestsViewModel.protests.filter((p) => p.status === 'upheld' || p.status === 'dismissed').length}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="rounded-lg bg-iron-gray/50 border border-charcoal-outline p-4">
|
|
|
|
|
@@ -637,17 +491,17 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
<span className="text-xs font-medium uppercase">Total</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-2xl font-bold text-white">
|
|
|
|
|
{protests.length}
|
|
|
|
|
{protestsViewModel.protests.length}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Protest list */}
|
|
|
|
|
<div className="space-y-3">
|
|
|
|
|
{protests.map((protest) => {
|
|
|
|
|
const race = protestRaces[protest.raceId];
|
|
|
|
|
const filer = protestDriversById[protest.protestingDriverId];
|
|
|
|
|
const accused = protestDriversById[protest.accusedDriverId];
|
|
|
|
|
{protestsViewModel.protests.map((protest) => {
|
|
|
|
|
const race = protestsViewModel.racesById[protest.raceId];
|
|
|
|
|
const filer = protestsViewModel.driversById[protest.protestingDriverId];
|
|
|
|
|
const accused = protestsViewModel.driversById[protest.accusedDriverId];
|
|
|
|
|
|
|
|
|
|
const statusConfig = {
|
|
|
|
|
pending: { color: 'text-warning-amber', bg: 'bg-warning-amber/10', border: 'border-warning-amber/30', icon: Clock, label: 'Pending Review' },
|
|
|
|
|
@@ -1073,7 +927,7 @@ export default function LeagueAdmin({ league, onLeagueUpdate }: LeagueAdminProps
|
|
|
|
|
title="Reject join request"
|
|
|
|
|
description={
|
|
|
|
|
activeRejectRequest
|
|
|
|
|
? `Provide a reason for rejecting ${requestDriversById[activeRejectRequest.driverId]?.name ?? 'this driver'}.`
|
|
|
|
|
? `Provide a reason for rejecting ${activeRejectRequest.driver?.name ?? 'this driver'}.`
|
|
|
|
|
: 'Provide a reason for rejecting this join request.'
|
|
|
|
|
}
|
|
|
|
|
primaryActionLabel="Reject"
|
|
|
|
|
|