diff --git a/apps/web/src/components/profile.tsx b/apps/web/src/components/profile.tsx index a4fde7edd51..9fad57b0b99 100644 --- a/apps/web/src/components/profile.tsx +++ b/apps/web/src/components/profile.tsx @@ -4,9 +4,12 @@ import { useRouter } from "next/router"; import { useTranslation } from "next-i18next"; import * as React from "react"; +import Badge from "@/components/badge"; import Calendar from "@/components/icons/calendar.svg"; +import LockClosed from "@/components/icons/lock-closed.svg"; import Pencil from "@/components/icons/pencil.svg"; import User from "@/components/icons/user.svg"; +import Tooltip from "@/components/tooltip"; import { useDayjs } from "../utils/dayjs"; import { trpc } from "../utils/trpc"; @@ -79,26 +82,37 @@ export const Profile: React.FunctionComponent = () => { {createdPolls.length > 0 ? ( -
-
+
+
{createdPolls.map((poll, i) => ( -
-
-
-
- - -
{poll.title}
- -
-
- {dayjs(poll.createdAt).fromNow()} -
-
-
+
+ + + + + + + + + {poll.title} + + {poll.closed ? ( + + + + + + ) : null} + + + {dayjs(poll.createdAt).fromNow()} + + + +
))}
diff --git a/apps/web/src/server/routers/user.ts b/apps/web/src/server/routers/user.ts index 2ae6d5cf278..cfe62b88d37 100644 --- a/apps/web/src/server/routers/user.ts +++ b/apps/web/src/server/routers/user.ts @@ -33,7 +33,6 @@ export const user = router({ createdAt: true, adminUrlId: true, }, - take: 10, orderBy: { createdAt: "desc", },