feat: update admin interface with new requests link and enhance UI elements
This commit is contained in:
parent
b9219fbbfe
commit
3455fc8e93
4 changed files with 21 additions and 2 deletions
|
|
@ -566,6 +566,7 @@ const Main = () => {
|
||||||
|
|
||||||
// se superato periodo interruzione, ma non interrotto, non scaduto e non in conferma, mostra avviso
|
// se superato periodo interruzione, ma non interrotto, non scaduto e non in conferma, mostra avviso
|
||||||
if (
|
if (
|
||||||
|
!isAdmin &&
|
||||||
!servizio.acceptedInterr &&
|
!servizio.acceptedInterr &&
|
||||||
isBefore(
|
isBefore(
|
||||||
new Date(),
|
new Date(),
|
||||||
|
|
|
||||||
|
|
@ -336,13 +336,21 @@ export const RichiesteTable = ({ data }: RichiesteTableProps) => {
|
||||||
return (
|
return (
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button size="sm" variant="outline">
|
<Button
|
||||||
|
className="data-[state=open]:border-primary data-[state=open]:bg-primary/10"
|
||||||
|
size="sm"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
{annunci.length} Annunci
|
{annunci.length} Annunci
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent
|
<PopoverContent
|
||||||
align="end"
|
align="end"
|
||||||
className="max-h-[50vh] w-[80vw] overflow-y-auto sm:max-h-full"
|
className="max-h-[50vh] w-[80vw] overflow-y-auto sm:max-h-220"
|
||||||
|
collisionPadding={{
|
||||||
|
top: 20,
|
||||||
|
bottom: 20,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<PopoverHeader>
|
<PopoverHeader>
|
||||||
<PopoverTitle>Annunci Inseriti</PopoverTitle>
|
<PopoverTitle>Annunci Inseriti</PopoverTitle>
|
||||||
|
|
|
||||||
|
|
@ -745,6 +745,11 @@ export const en: LangDict = {
|
||||||
icon: { className: "stroke-green-500", icon: "users" },
|
icon: { className: "stroke-green-500", icon: "users" },
|
||||||
title: "Users",
|
title: "Users",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: "/area-riservata/admin/richieste",
|
||||||
|
icon: { className: "stroke-purple-500", icon: "search" },
|
||||||
|
title: "Requests",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: "/area-riservata/admin/chats",
|
href: "/area-riservata/admin/chats",
|
||||||
icon: { className: "", icon: "messages" },
|
icon: { className: "", icon: "messages" },
|
||||||
|
|
|
||||||
|
|
@ -741,6 +741,11 @@ export const it: LangDict = {
|
||||||
icon: { className: "stroke-green-500", icon: "users" },
|
icon: { className: "stroke-green-500", icon: "users" },
|
||||||
title: "Utenti",
|
title: "Utenti",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: "/area-riservata/admin/richieste",
|
||||||
|
icon: { className: "stroke-purple-500", icon: "search" },
|
||||||
|
title: "Richieste",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: "/area-riservata/admin/chats",
|
href: "/area-riservata/admin/chats",
|
||||||
icon: { className: "", icon: "messages" },
|
icon: { className: "", icon: "messages" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue