Show participated polls on polls page + UI refresh (#1089)

This commit is contained in:
Luke Vella 2024-05-12 13:20:00 +08:00 committed by GitHub
parent bd9e9fe95b
commit f8a217ae75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
125 changed files with 3007 additions and 2363 deletions

View file

@ -1,5 +1,6 @@
import { TimeFormat } from "@rallly/database";
import dayjs from "dayjs";
import advancedFormat from "dayjs/plugin/advancedFormat";
import duration from "dayjs/plugin/duration";
import isBetween from "dayjs/plugin/isBetween";
import isSameOrAfter from "dayjs/plugin/isSameOrAfter";
@ -169,11 +170,12 @@ dayjs.extend(timezone);
dayjs.extend(duration);
dayjs.extend(isSameOrAfter);
dayjs.extend(updateLocale);
dayjs.extend(advancedFormat);
const DayjsContext = React.createContext<{
adjustTimeZone: (
date: dayjs.ConfigType,
keepLocalTime?: boolean,
keepLocalTime: boolean,
) => dayjs.Dayjs;
dayjs: (date?: dayjs.ConfigType) => dayjs.Dayjs;
locale: {