Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Bring back showing the day of the week for date options (#499)
Luke Vella0d805c8316a0
diff --git a/src/components/date-card.tsx b/src/components/date-card.tsxindex eb59bdb46..79cf8e916 100644--- a/src/components/date-card.tsx+++ b/src/components/date-card.tsx@@ -4,6 +4,7 @@ import * as React from "react";export interface DateCardProps {annotation?: React.ReactNode;day: string;+ dow?: string;month: string;className?: string;}@@ -12,6 +13,7 @@ const DateCard: React.VoidFunctionComponent<DateCardProps> = ({annotation,className,day,+ dow,month,}) => {return (@@ -25,10 +27,15 @@ const DateCard: React.VoidFunctionComponent<DateCardProps> = ({<div className="absolute -top-3 -right-3 z-20">{annotation}</div>) : null}<div>+ {dow ? (+ <div className="-mt-3 bg-white text-center text-xs text-slate-400">+ {dow}+ </div>+ ) : null}+ <div className="text-center text-xl font-bold leading-none">{day}</div><div className="text-center text-xs font-semibold uppercase leading-normal text-slate-500">{month}</div>- <div className="text-center text-xl font-bold leading-none">{day}</div></div></div>);diff --git a/src/components/home/poll-demo.tsx b/src/components/home/poll-demo.tsxindex edae44b23..29837227e 100644--- a/src/components/home/poll-demo.tsx+++ b/src/components/home/poll-demo.tsx@@ -68,6 +68,7 @@ const PollDemo: React.VoidFunctionComponent = () => {<div><DateCardday={dayjs(d).format("D")}+ dow={dayjs(d).format("ddd")}month={dayjs(d).format("MMM")}/></div>diff --git a/src/components/poll/desktop-poll/poll-header.tsx b/src/components/poll/desktop-poll/poll-header.tsxindex e8b4f561a..7f591209d 100644--- a/src/components/poll/desktop-poll/poll-header.tsx+++ b/src/components/poll/desktop-poll/poll-header.tsx@@ -44,7 +44,11 @@ const PollHeader: React.VoidFunctionComponent = () => {onMouseOut={() => setActiveOptionId(null)}><div>- <DateCard day={option.day} month={option.month} />+ <DateCard+ day={option.day}+ dow={option.dow}+ month={option.month}+ /></div>{option.type === "timeSlot" ? (<TimeRange