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
|
||||
if (
|
||||
!isAdmin &&
|
||||
!servizio.acceptedInterr &&
|
||||
isBefore(
|
||||
new Date(),
|
||||
|
|
|
|||
|
|
@ -336,13 +336,21 @@ export const RichiesteTable = ({ data }: RichiesteTableProps) => {
|
|||
return (
|
||||
<Popover>
|
||||
<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
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
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>
|
||||
<PopoverTitle>Annunci Inseriti</PopoverTitle>
|
||||
|
|
|
|||
|
|
@ -745,6 +745,11 @@ export const en: LangDict = {
|
|||
icon: { className: "stroke-green-500", icon: "users" },
|
||||
title: "Users",
|
||||
},
|
||||
{
|
||||
href: "/area-riservata/admin/richieste",
|
||||
icon: { className: "stroke-purple-500", icon: "search" },
|
||||
title: "Requests",
|
||||
},
|
||||
{
|
||||
href: "/area-riservata/admin/chats",
|
||||
icon: { className: "", icon: "messages" },
|
||||
|
|
|
|||
|
|
@ -741,6 +741,11 @@ export const it: LangDict = {
|
|||
icon: { className: "stroke-green-500", icon: "users" },
|
||||
title: "Utenti",
|
||||
},
|
||||
{
|
||||
href: "/area-riservata/admin/richieste",
|
||||
icon: { className: "stroke-purple-500", icon: "search" },
|
||||
title: "Richieste",
|
||||
},
|
||||
{
|
||||
href: "/area-riservata/admin/chats",
|
||||
icon: { className: "", icon: "messages" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue