Created a checkpoint
Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/AXEqh9q
This commit is contained in:
parent
162deaa3b7
commit
a829fbf3a9
2
.replit
2
.replit
@ -21,7 +21,7 @@ externalPort = 3001
|
|||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41295
|
localPort = 41295
|
||||||
externalPort = 6000
|
externalPort = 5173
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41343
|
localPort = 41343
|
||||||
|
|||||||
@ -37,7 +37,7 @@ type AvailableGuard = {
|
|||||||
export default function PlanningMobile() {
|
export default function PlanningMobile() {
|
||||||
const [selectedDate, setSelectedDate] = useState(format(new Date(), "yyyy-MM-dd"));
|
const [selectedDate, setSelectedDate] = useState(format(new Date(), "yyyy-MM-dd"));
|
||||||
const [selectedLocation, setSelectedLocation] = useState<Location>("roccapiemonte");
|
const [selectedLocation, setSelectedLocation] = useState<Location>("roccapiemonte");
|
||||||
const [selectedGuardId, setSelectedGuardId] = useState<string>("");
|
const [selectedGuardId, setSelectedGuardId] = useState<string>("all");
|
||||||
|
|
||||||
// Query siti mobile per location
|
// Query siti mobile per location
|
||||||
const { data: mobileSites, isLoading: sitesLoading } = useQuery<MobileSite[]>({
|
const { data: mobileSites, isLoading: sitesLoading } = useQuery<MobileSite[]>({
|
||||||
@ -129,7 +129,7 @@ export default function PlanningMobile() {
|
|||||||
<SelectValue placeholder="Tutte le guardie" />
|
<SelectValue placeholder="Tutte le guardie" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value="">Tutte le guardie</SelectItem>
|
<SelectItem value="all">Tutte le guardie</SelectItem>
|
||||||
{availableGuards?.map((guard) => (
|
{availableGuards?.map((guard) => (
|
||||||
<SelectItem key={guard.id} value={guard.id}>
|
<SelectItem key={guard.id} value={guard.id}>
|
||||||
{guard.firstName} {guard.lastName} - #{guard.badgeNumber} ({guard.availableHours}h disponibili)
|
{guard.firstName} {guard.lastName} - #{guard.badgeNumber} ({guard.availableHours}h disponibili)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user