feat: schedule — default to group view, make halls more visible
This commit is contained in:
@@ -40,7 +40,7 @@ type ScheduleAction =
|
|||||||
|
|
||||||
const initialState: ScheduleState = {
|
const initialState: ScheduleState = {
|
||||||
locationMode: "all",
|
locationMode: "all",
|
||||||
viewMode: "days",
|
viewMode: "groups",
|
||||||
filterTrainer: null,
|
filterTrainer: null,
|
||||||
filterType: null,
|
filterType: null,
|
||||||
filterStatus: "all",
|
filterStatus: "all",
|
||||||
|
|||||||
@@ -115,10 +115,10 @@ export function DayCard({ day, typeDots, showLocation, filterTrainer, setFilterT
|
|||||||
<div key={locName}>
|
<div key={locName}>
|
||||||
{/* Location sub-header */}
|
{/* Location sub-header */}
|
||||||
<div className={`flex items-center gap-1.5 px-5 py-2 bg-neutral-100/60 dark:bg-white/[0.03] ${gi > 0 ? "border-t border-neutral-200 dark:border-white/[0.06]" : ""}`}>
|
<div className={`flex items-center gap-1.5 px-5 py-2 bg-neutral-100/60 dark:bg-white/[0.03] ${gi > 0 ? "border-t border-neutral-200 dark:border-white/[0.06]" : ""}`}>
|
||||||
<MapPin size={11} className="shrink-0 text-neutral-400 dark:text-white/25" />
|
<MapPin size={11} className="shrink-0 text-gold/60" />
|
||||||
<span className="text-[11px] font-medium text-neutral-400 dark:text-white/30">
|
<span className="text-[11px] font-medium text-neutral-600 dark:text-white/50">
|
||||||
{locName}
|
{locName}
|
||||||
{address && <span className="text-neutral-300 dark:text-white/15"> · {shortAddress(address)}</span>}
|
{address && <span className="text-neutral-400 dark:text-white/30"> · {shortAddress(address)}</span>}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="divide-y divide-neutral-100 dark:divide-white/[0.04]">
|
<div className="divide-y divide-neutral-100 dark:divide-white/[0.04]">
|
||||||
|
|||||||
@@ -239,9 +239,9 @@ export function GroupView({
|
|||||||
|
|
||||||
{/* Location */}
|
{/* Location */}
|
||||||
{showLocation && group.location && (
|
{showLocation && group.location && (
|
||||||
<span className="flex items-center gap-1 text-[10px] text-neutral-400 dark:text-white/25">
|
<span className="flex items-center gap-1 rounded-full bg-white/5 border border-white/10 px-2 py-px text-[10px] font-medium text-neutral-300 dark:text-white/50">
|
||||||
<MapPin size={9} />
|
<MapPin size={9} />
|
||||||
{group.location}
|
{shortAddress(group.locationAddress || group.location)}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user