mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 06:25:17 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -1932,8 +1932,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
|
|||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<FormLabel>Docker Cleanup</FormLabel>
|
<FormLabel>Docker Cleanup</FormLabel>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
Trigger the action when Docker cleanup is
|
Trigger the action when Docker cleanup is performed.
|
||||||
performed.
|
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
</div>
|
</div>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
|
|||||||
@@ -22,8 +22,11 @@ import { api } from "@/utils/api";
|
|||||||
import { DialogAction } from "@/components/shared/dialog-action";
|
import { DialogAction } from "@/components/shared/dialog-action";
|
||||||
|
|
||||||
export const ShowSessions = () => {
|
export const ShowSessions = () => {
|
||||||
const { data: sessions, isPending, refetch } =
|
const {
|
||||||
api.user.listSessions.useQuery();
|
data: sessions,
|
||||||
|
isPending,
|
||||||
|
refetch,
|
||||||
|
} = api.user.listSessions.useQuery();
|
||||||
const { mutateAsync: revoke, isPending: isRevoking } =
|
const { mutateAsync: revoke, isPending: isRevoking } =
|
||||||
api.user.revokeSession.useMutation();
|
api.user.revokeSession.useMutation();
|
||||||
|
|
||||||
@@ -160,9 +163,7 @@ const SessionTable = ({
|
|||||||
{s.ipAddress || "-"}
|
{s.ipAddress || "-"}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="hidden lg:table-cell max-w-[200px] truncate text-sm text-muted-foreground">
|
<TableCell className="hidden lg:table-cell max-w-[200px] truncate text-sm text-muted-foreground">
|
||||||
{s.userAgent
|
{s.userAgent ? parseUserAgent(s.userAgent) : "-"}
|
||||||
? parseUserAgent(s.userAgent)
|
|
||||||
: "-"}
|
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="text-sm text-muted-foreground">
|
<TableCell className="text-sm text-muted-foreground">
|
||||||
{format(new Date(s.createdAt), "MMM d, HH:mm")}
|
{format(new Date(s.createdAt), "MMM d, HH:mm")}
|
||||||
|
|||||||
Reference in New Issue
Block a user