feat(troubleshoot): add event titles to the troubleshoot page (#3434) (#3437)

This commit is contained in:
Heiki authored and GitHub committed 2022-08-03 09:19:16 +02:00
1 parent 6301ea16f8
commit 5358e5848d
4 files changed
+11 -4

No files matched your search

+2 -1
View File
@@ -14,7 +14,7 @@ type User = inferQueryOutput<"viewer.me">;
const AvailabilityView = ({ user }: { user: User }) => {
const { t } = useLocale();
const [loading, setLoading] = useState(true);
const [availability, setAvailability] = useState<{ end: string; start: string }[]>([]);
const [availability, setAvailability] = useState<{ end: string; start: string; title?: string }[]>([]);
const [selectedDate, setSelectedDate] = useState(dayjs());
function convertMinsToHrsMins(mins: number) {
@@ -83,6 +83,7 @@ const AvailabilityView = ({ user }: { user: User }) => {
</span>{" "}
{t("on")} {dayjs(slot.start).format("D")}{" "}
{t(dayjs(slot.start).format("MMMM").toLowerCase())} {dayjs(slot.start).format("YYYY")}
{slot.title && ` - (${slot.title})`}
</div>
</div>
))